Spread Windows Forms 17
GrapeCity.Spreadsheet.WinForms.Ribbon Assembly / GrapeCity.Spreadsheet.WinForms.Ribbon Namespace / RibbonCheckBox Class / DrawItem Event


In This Topic
    DrawItem Event (RibbonCheckBox)
    In This Topic
    Occurs when the button is owner-drawn.
    Syntax
    'Declaration
     
    
    Public Event DrawItem As EventHandler(Of DrawItemEventArgs)
    'Usage
     
    
    Dim instance As RibbonCheckBox
    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.

    PropertyDescription
    Gets the background color of the item that is being drawn.  
    Gets the rectangle that represents the bounds of the item that is being drawn.  
    Gets the font that is 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 index value of the item that is being drawn.  
    Gets the state of the item being drawn.  
    See Also