TreeView.addOnAfterLabelEdit

Overview | Methods | This Package | All Packages

TreeView.addOnAfterLabelEdit

Assigns a delegate to the afterLabelEdit event.

Syntax

public void addOnAfterLabelEdit( NodeLabelEditEventHandler value )

Parameters

value

The NodeLabelEditEventHandler delegate to be notified when the event occurs.

Remarks

Passing an event handler as a parameter to this method is equivalent to setting the afterLabelEdit event to that method in the Properties window. The afterLabelEdit event occurs when the user finishes editing the text for a tree node. The string the user has typed is passed to the event handler, which can reject the change and reset the text to what it was before the user began editing the text. If the labelEdit property is set to false, this event is not triggered, and the user cannot edit in the tree view control.

See Also   removeOnAfterLabelEdit