Edit

Share via


DrawListViewItemEventArgs Constructor

Definition

Initializes a new instance of the DrawListViewItemEventArgs class.

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)

Parameters

graphics
Graphics

The Graphics surface on which to draw.

item
ListViewItem

The ListViewItem to draw.

bounds
Rectangle

The Rectangle within which to draw.

itemIndex
Int32

The index of the ListViewItem within the Items collection.

state
ListViewItemStates

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

Applies to