共用方式為


DrawListViewSubItemEventArgs 建構函式

定義

初始化 DrawListViewSubItemEventArgs 類別的新執行個體。

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)

參數

graphics
Graphics

要繪製的 Graphics 表層。

bounds
Rectangle

要於其中進行繪製的 Rectangle

item
ListViewItem

要描繪之 ListViewItemListViewItem.ListViewSubItem 父代 (Parent)。

itemIndex
Int32

ListViewItem 集合中父代 Items 的索引。

columnIndex
Int32

ListViewItem.ListViewSubItem 集合中 Columns 資料行的索引。

header
ColumnHeader

要在其中顯示 ColumnHeader 之資料行的 ListViewItem.ListViewSubItem

itemState
ListViewItemStates

ListViewItemStates 值的位元組合,指出要描繪之 ListViewItemListViewItem.ListViewSubItem 父代之目前狀態。

適用於