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 Sub New (
	graphics As Graphics,
	item As ListViewItem,
	bounds As Rectangle,
	itemIndex As Integer,
	state As ListViewItemStates
)

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: