DrawItemEventArgs Class
Provides data for the DrawItem event.
Definition
Members Table
The following table lists the members exposed by the DrawItemEventArgs object. Click a tab on the left to choose the type of member you want to view.
Methods
| Method | Description |
|---|
| DrawBackground | Draws the background within the bounds specified in the DrawItemEventArgs constructor and with the appropriate color. |
| DrawFocusRectangle | Draws a rectangle which focuses on the item being drawn. |
| Equals | Overloaded. Compares two objects to determine if they are equal. (Inherited from Object) |
| GetHashCode | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (Inherited from Object) |
| ToString | Returns a String that represents the current Object. (Inherited from Object) |
Properties
| Property | Description |
|---|
| BackColor | Gets the background color of the item that is being drawn. |
| Bounds | Gets the rectangle that represents the bounds of the item that is being drawn. |
| Font | Gets the font assigned to the item being drawn. |
| ForeColor | Gets the foreground color of the item being drawn. |
| Index | Gets the index value of the item that is being drawn. |
| State | Gets the state of the item being drawn. |
| Visual | Gets the visual element of the item being drawn. |
Fields
| Field | Description |
|---|
| Empty | Represents an event with no event data. (Inherited from EventArgs) |
Inheritance Hierarchy
Object
Class Information
| Namespace | System.Windows.Forms |
|---|
| Flash Library | System.Windows.Forms.scl |
|---|
| Flash Library Version | 2.0.0.2118 |
|---|
| Silverlight Library | System.Windows.Forms.dll |
|---|