'Declaration
<SRCategoryAttribute("CatBehavior")> <SRDescriptionAttribute("ListViewDrawSubItemEventDescr")> Public Event DrawSubItem As System.Windows.Forms.DrawListViewSubItemEventHandler
'Usage
Dim instance As NListView Dim handler As System.Windows.Forms.DrawListViewSubItemEventHandler AddHandler instance.DrawSubItem, handler
[SRCategory("CatBehavior")] [SRDescription("ListViewDrawSubItemEventDescr")] public event System.Windows.Forms.DrawListViewSubItemEventHandler DrawSubItem
Event Data
The event handler receives an argument of type System.Windows.Forms.DrawListViewSubItemEventArgs containing data related to this event. The following DrawListViewSubItemEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Bounds | Gets the size and location of the System.Windows.Forms.ListViewItem.ListViewSubItem to draw. |
ColumnIndex | Gets the index of the System.Windows.Forms.ListView column in which the System.Windows.Forms.ListViewItem.ListViewSubItem is displayed. |
DrawDefault | Gets or sets a value indicating whether the System.Windows.Forms.ListViewItem.ListViewSubItem should be drawn by the operating system instead of owner-drawn. |
Graphics | Gets the System.Drawing.Graphics used to draw the System.Windows.Forms.ListViewItem.ListViewSubItem. |
Header | Gets the header of the System.Windows.Forms.ListView column in which the System.Windows.Forms.ListViewItem.ListViewSubItem is displayed. |
Item | Gets the parent System.Windows.Forms.ListViewItem of the System.Windows.Forms.ListViewItem.ListViewSubItem to draw. |
ItemIndex | Gets the index of the parent System.Windows.Forms.ListViewItem of the System.Windows.Forms.ListViewItem.ListViewSubItem to draw. |
ItemState | Gets the current state of the parent System.Windows.Forms.ListViewItem of the System.Windows.Forms.ListViewItem.ListViewSubItem to draw. |
SubItem | Gets the System.Windows.Forms.ListViewItem.ListViewSubItem to draw. |
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