Edit

Share via


LabelEditEventArgs Constructors

Definition

Initializes a new instance of the LabelEditEventArgs class.

Overloads

LabelEditEventArgs(Int32)

Initializes a new instance of the LabelEditEventArgs class with the specified index to the ListViewItem to edit.

LabelEditEventArgs(Int32, String)

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.

LabelEditEventArgs(Int32)

Source:
LabelEditEventArgs.cs
Source:
LabelEditEventArgs.cs
Source:
LabelEditEventArgs.cs

Initializes a new instance of the LabelEditEventArgs class with the specified index to the ListViewItem to edit.

public:
 LabelEditEventArgs(int item);
public LabelEditEventArgs (int item);
new System.Windows.Forms.LabelEditEventArgs : int -> System.Windows.Forms.LabelEditEventArgs
Public Sub New (item As Integer)

Parameters

item
Int32

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

Remarks

You can use this constructor when raising the ListView.BeforeLabelEdit or ListView.AfterLabelEdit event at run time to specify a specific list item in the ListView to edit.

Applies to

LabelEditEventArgs(Int32, String)

Source:
LabelEditEventArgs.cs
Source:
LabelEditEventArgs.cs
Source:
LabelEditEventArgs.cs

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.

public:
 LabelEditEventArgs(int item, System::String ^ label);
public LabelEditEventArgs (int item, string label);
public LabelEditEventArgs (int item, string? label);
new System.Windows.Forms.LabelEditEventArgs : int * string -> System.Windows.Forms.LabelEditEventArgs
Public Sub New (item As Integer, label As String)

Parameters

item
Int32

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

label
String

The new text assigned to the label of the ListViewItem.

Remarks

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.

Applies to