TreeView.addOnBeforeSelect

Overview | Methods | This Package | All Packages

TreeView.addOnBeforeSelect

Assigns a delegate to the beforeSelect event.

Syntax

public void addOnBeforeSelect( TreeViewCancelEventHandler value )

Parameters

value

The TreeViewCancelEventHandler delegate to be notified when the event occurs.

Remarks

Passing an event handler as a parameter to this method is equivalent to setting the beforeSelect event to that method in the Properties window. The beforeSelect event occurs when the selection in the tree view control is about to change. If the event handler cancels this event, the selection will not change.

See Also   removeOnBeforeSelect