DrawListViewItemEventArgs Constructor

DrawListViewItemEventArgs Constructor (Graphics, ListViewItem, Rectangle, Int32, ListViewItemStates)

 

Initializes a new instance of the DrawListViewItemEventArgs class.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public DrawListViewItemEventArgs(
	Graphics graphics,
	ListViewItem item,
	Rectangle bounds,
	int itemIndex,
	ListViewItemStates state
)

Parameters

graphics
Type: System.Drawing.Graphics

The Graphics surface on which to draw.

item
Type: System.Windows.Forms.ListViewItem

The ListViewItem to draw.

bounds
Type: System.Drawing.Rectangle

The Rectangle within which to draw.

itemIndex
Type: System.Int32

The index of the ListViewItem within the ListView.Items collection.

state
Type: System.Windows.Forms.ListViewItemStates

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

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft