Sdílet prostřednictvím


DrawListViewSubItemEventArgs Konstruktor

Definice

Inicializuje novou instanci DrawListViewSubItemEventArgs třídy .

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);
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);
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);
new System.Windows.Forms.DrawListViewSubItemEventArgs : System.Drawing.Graphics * System.Drawing.Rectangle * System.Windows.Forms.ListViewItem * System.Windows.Forms.ListViewItem.ListViewSubItem * int * int * System.Windows.Forms.ColumnHeader * System.Windows.Forms.ListViewItemStates -> System.Windows.Forms.DrawListViewSubItemEventArgs
Public Sub New (graphics As Graphics, bounds As Rectangle, item As ListViewItem, subItem As ListViewItem.ListViewSubItem, itemIndex As Integer, columnIndex As Integer, header As ColumnHeader, itemState As ListViewItemStates)

Parametry

graphics
Graphics

Plocha Graphics , na kterou chcete kreslit.

bounds
Rectangle

Hodnota Rectangle , ve které chcete kreslit.

item
ListViewItem

Nadřazený ListViewItem objekt, který ListViewItem.ListViewSubItem chcete nakreslit.

itemIndex
Int32

Index nadřazeného ListViewItem objektu v kolekci Items .

columnIndex
Int32

Index sloupce v ListViewItem.ListViewSubItem kolekci Columns .

header
ColumnHeader

Pro ColumnHeader sloupec, ve kterém ListViewItem.ListViewSubItem je zobrazena.

itemState
ListViewItemStates

Bitová kombinace ListViewItemStates hodnot označující aktuální stav ListViewItem nadřazeného objektu, který ListViewItem.ListViewSubItem se má nakreslit.

Platí pro