ComponentOne Ribbon for WinForms
DrawItem Event

C1.Win.C1Ribbon.4 Assembly > C1.Win.C1Ribbon Namespace > RibbonButton Class : DrawItem Event
Occurs when the button is owner-drawn.
Syntax
'Declaration
 
Public Event DrawItem As DrawItemEventHandler
public event DrawItemEventHandler 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.

PropertyDescription
Gets the rectangle that represents the bounds of the item being drawn.  
Gets the font assigned to the item being drawn.  
Gets the foreground color of the of the item being drawn.  
Gets the graphics surface to draw the item on.  
Gets the RibbonItem that is being OwnerDrawn  
Gets the state of the item being drawn.  
See Also