NodeLabelEditEventArgs

NodeLabelEditEventArgs

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

This class represents the data for the TreeView.BeforeLabelEdit and TreeView.AfterLabelEdit events. You can discover the Node that is being edited and the new Label that will be set into the control.

You can also set CancelEdit to cancel the editing process (or get the value to determine if the event has already been canceled ).

 public class  NodeLabelEditEventArgs  : EventArgs {  // Public Constructors  public  NodeLabelEditEventArgs  (TreeNode  node  );    public  NodeLabelEditEventArgs  (TreeNode  node  , string  label  );  // Public Instance Properties  public bool  CancelEdit  {set; get; }    public string  Label  {get; }    public TreeNode  Node  {get; } } 

Hierarchy

System.Object System.EventArgs NodeLabelEditEventArgs

Passed To

NodeLabelEditEventHandler.{BeginInvoke() , Invoke()} , TreeView.{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