DrawListViewItemEventArgs 构造函数

定义

初始化 DrawListViewItemEventArgs 类的新实例。

public:
 DrawListViewItemEventArgs(System::Drawing::Graphics ^ graphics, System::Windows::Forms::ListViewItem ^ item, System::Drawing::Rectangle bounds, int itemIndex, System::Windows::Forms::ListViewItemStates state);
public DrawListViewItemEventArgs (System.Drawing.Graphics graphics, System.Windows.Forms.ListViewItem item, System.Drawing.Rectangle bounds, int itemIndex, System.Windows.Forms.ListViewItemStates state);
new System.Windows.Forms.DrawListViewItemEventArgs : System.Drawing.Graphics * System.Windows.Forms.ListViewItem * System.Drawing.Rectangle * int * System.Windows.Forms.ListViewItemStates -> System.Windows.Forms.DrawListViewItemEventArgs
Public Sub New (graphics As Graphics, item As ListViewItem, bounds As Rectangle, itemIndex As Integer, state As ListViewItemStates)

参数

graphics
Graphics

要在其上进行绘制的 Graphics 表面。

item
ListViewItem

要绘制的 ListViewItem

bounds
Rectangle

要在其中进行绘制的 Rectangle

itemIndex
Int32

ListViewItemItems 集合内的索引。

state
ListViewItemStates

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

适用于