RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomTreeView.CanExpand Method

Node expand event dispatcher.

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

CanExpand is called automatically whenever an attempt is made to expand the node specified by the Node parameter. CanExpand returns true if node can be expanded, false otherwise. 

If there is no OnExpanding event handler, CanExpand returns true. 

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

 

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