March 2003
Intermediate to advanced
896 pages
32h 35m
English
LabelEditEventArgs
The data for the ListView.BeforeLabelEdit and
AfterLabelEdit events is encapsulated in this
class. BeforeLabelEdit occurs just before the
editing begins, and AfterLabelEdit occurs when the
user attempts to commit (or abort) an edit. The
Item being edited can be retrieved, and the
current (or new) Label text can also be obtained.
If you wish to abort the operation, you can set the
CancelEdit property.
public class LabelEditEventArgs : EventArgs { // Public Constructors public LabelEditEventArgs(int item); public LabelEditEventArgs(int item, string label); // Public Instance Properties public bool CancelEdit{set; get; } public int Item{get; } public string Label{get; } }
System.Object
→ System.EventArgs → LabelEditEventArgs
LabelEditEventHandler.{BeginInvoke(),
Invoke()}, ListView.{OnAfterLabelEdit(), OnBeforeLabelEdit()}
Read now
Unlock full access