ComponentOne List for WinForms
C1.Win.C1List Namespace / C1Combo Class / DrawItem Event

In This Topic
    DrawItem Event (C1Combo)
    In This Topic
    Fires when any cell is required to be redrawn and DrawMode is set to OwnerDrawFixed or OwnerDrawVariable.
    Syntax
    'Declaration
     
    
    Public Event DrawItem As OwnerDrawCellEventHandler
    public event OwnerDrawCellEventHandler DrawItem
    Event Data

    The event handler receives an argument of type OwnerDrawCellEventArgs containing data related to this event. The following OwnerDrawCellEventArgs properties provide information specific to this event.

    PropertyDescription
    The bounding rectangle for the cell that needs to be rendered.  
    The index of the column in the DisplayColumns collection.  
    The C1DisplayColumn being rendered.  
    Indicates whether the custom renderer handles the background, border or content.  
    The GDI+ graphics object to render on.  
    Indicates whether the event code rendered the cell.  
    The index of the row for the cell being rendered.  
    The index of the split for the cell being rendered.  
    The Style used to render the cell.  
    The text of the cell.  
    See Also