LabelEditEventArgs

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()}



. Net Windows Forms in a Nutshell
.NET Windows Forms in a Nutshell
ISBN: 0596003382
EAN: 2147483647
Year: 2002
Pages: 794

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net