'Declaration
Public Event DrawItem As EventHandler(Of DrawItemEventArgs)
'Usage
Dim instance As RibbonToggleButton Dim handler As EventHandler(Of DrawItemEventArgs) AddHandler instance.DrawItem, handler
public event EventHandler<DrawItemEventArgs> DrawItem
Event Data
The event handler receives an argument of type DrawItemEventArgs containing data related to this event. The following DrawItemEventArgs properties provide information specific to this event.
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 that is assigned to the item being drawn. |
ForeColor | Gets the foreground color of the of the item being drawn. |
Graphics | Gets the graphics surface to draw the item on. |
Index | Gets the index value of the item that is being drawn. |
State | Gets the state of the item being drawn. |
See Also