RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TTreeNode.Collapse Method

Collapses a node.

Pascal
procedure Collapse(Recurse: Boolean);
C++
__fastcall Collapse(Boolean Recurse);

When a node is collapsed, all of its subnodes are hidden. The plus button may be displayed, depending on whether the tree view's ShowButtons property is set. If Recurse is true, then all subnodes will be collapsed as well. When the node is next expanded the children will still be collapsed. If Recurse is false, the child nodes won't be collapsed and the next time the node is expanded, the children will be in the same state as when Collapse was called. 

 

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