DekGenius.com
[ Team LiB ] Previous Section Next Section

LabelEditEventArgs

System.Windows.Forms (system.windows.forms.dll)class

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; }
}

Hierarchy

System.Object System.EventArgs LabelEditEventArgs

Passed To

LabelEditEventHandler.{BeginInvoke(), Invoke()}, ListView.{OnAfterLabelEdit(), OnBeforeLabelEdit()}

    [ Team LiB ] Previous Section Next Section