LabelEditEventArgs Constructor (Int32, String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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
)

Parameters

item
Type: System.Int32

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

label
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
Show: