Nevron.UI.WinForm.Controls Namespace / NImageIndexListBox Class / DrawItem Event


In This Topic
    DrawItem Event (NImageIndexListBox)
    In This Topic
    Syntax
    'Declaration
     
    
    <SRCategoryAttribute("CatBehavior")>
    <SRDescriptionAttribute("drawItemEventDescr")>
    Public Event DrawItem As System.Windows.Forms.DrawItemEventHandler
    'Usage
     
    
    Dim instance As NImageIndexListBox
    Dim handler As System.Windows.Forms.DrawItemEventHandler
     
    AddHandler instance.DrawItem, handler
    [SRCategory("CatBehavior")]
    [SRDescription("drawItemEventDescr")]
    public event System.Windows.Forms.DrawItemEventHandler DrawItem
    Event Data

    The event handler receives an argument of type System.Windows.Forms.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.  
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also