NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TreeView.AddOnBeforeLabelEdit

Adds an event handler for the "beforeLabelEdit" event notification. The beforeLabelEdit event is fired when the user attempts to begin changing the text of a node in the TreeView. The event handler can cancel this event, in which case the user won't be allowed to edit the text. This event can be used to prevent the user from editing specific nodes in the TreeView. If the labelEdit property of the TreeView is false, this event will not be fired, and all user attempts to edit node labels will be automatically rejected.

[Visual Basic]
Public Sub AddOnBeforeLabelEdit( _
   ByVal handler As NodeLabelEditEventHandler _
)
[C#]
public void AddOnBeforeLabelEdit(
   NodeLabelEditEventHandler handler
);
[C++]
public: void AddOnBeforeLabelEdit(
   NodeLabelEditEventHandler* handler
);
[JScript]
public function AddOnBeforeLabelEdit(
   handler : NodeLabelEditEventHandler
);

Parameters

handler
NodeLabelEditEventHandler to install.

See Also

TreeView Class | TreeView Members | System.WinForms Namespace