RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomTreeView.CanCollapse Method

Pending node collapse event dispatcher.

Pascal
function CanCollapse(Node: TTreeNode): Boolean; dynamic;
C++
__fastcall Boolean CanCollapse(TTreeNode Node);

CanCollapse is called automatically whenever an attempt is made to collapse the node specified by the Node parameter. CanCollapse returns true if node can be collapsed, false otherwise. 

If there is no OnCollapsing event handler, CanCollapse returns true. 

Override this method to make additional, class-specific responses in addition to the OnCollapsing event or to suppress the OnCollapsing event. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!