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

要绘制的 ListViewItem 的父级 ListViewItem.ListViewSubItem

itemIndex
Int32

ListViewItem 集合中父级 Items 的索引。

columnIndex
Int32

ListViewItem.ListViewSubItem 集合中 Columns 列的索引。

itemState
ListViewItemStates

ListViewItemStates 值的按位组合,指示要绘制的 ListViewItem 的父级 ListViewItem.ListViewSubItem 的当前状态。

适用于