LabelEditEventArgs Constructor (Int32, String)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Initializes a new instance of the LabelEditEventArgs class with the specified index to the ListViewItem being edited and the new text for the label of the ListViewItem.

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

public LabelEditEventArgs(
	int item,
	string label


Type: System.Int32

The zero-based index of the ListViewItem, containing the label to edit.

Type: System.String

The new text assigned to the label of the ListViewItem.

You can use this constructor when raising the ListView.BeforeLabelEdit or ListView.AfterLabelEdit event at run time to specify a list item in the ListView to edit. The constructor also enables you to specify the new text associated with the label of the ListViewItem.

.NET Framework
Available since 1.1
Return to top