DrawListViewSubItemEventArgs Constructor

Definition

Initializes a new instance of the DrawListViewSubItemEventArgs class.

C#
public DrawListViewSubItemEventArgs(System.Drawing.Graphics graphics, System.Drawing.Rectangle bounds, System.Windows.Forms.ListViewItem item, System.Windows.Forms.ListViewItem.ListViewSubItem subItem, int itemIndex, int columnIndex, System.Windows.Forms.ColumnHeader header, System.Windows.Forms.ListViewItemStates itemState);
C#
public DrawListViewSubItemEventArgs(System.Drawing.Graphics graphics, System.Drawing.Rectangle bounds, System.Windows.Forms.ListViewItem? item, System.Windows.Forms.ListViewItem.ListViewSubItem? subItem, int itemIndex, int columnIndex, System.Windows.Forms.ColumnHeader? header, System.Windows.Forms.ListViewItemStates itemState);

Parameters

graphics
Graphics

The Graphics surface on which to draw.

bounds
Rectangle

The Rectangle within which to draw.

item
ListViewItem

The ListViewItem parent of the ListViewItem.ListViewSubItem to draw.

itemIndex
Int32

The index of the parent ListViewItem within the Items collection.

columnIndex
Int32

The index of the ListViewItem.ListViewSubItem column within the Columns collection.

header
ColumnHeader

The ColumnHeader for the column in which the ListViewItem.ListViewSubItem is displayed.

itemState
ListViewItemStates

A bitwise combination of ListViewItemStates values indicating the current state of the ListViewItem parent of the ListViewItem.ListViewSubItem to draw.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10