TCustomTreeView.FullCollapse procedure
Collapses all tree nodes on the tree view control.
Declaration
procedure FullCollapseDescription
FullCollapse is a method used to collapse all of the nodes on the tree view control. It calls the BeginUpdate and EndUpdate methods to reduce the number of updates performed for the control while the tree nodes are being collapsed.
FullCollapse visits all top-level tree nodes in the Items property and calls their Collapse methods. Recursion is enabled when Collapse is called, so descendent tree nodes are also collapsed. Top-level nodes are still visible, but are displayed in the Collapsed state.
FullCollapse calls the GetFirstNode method in Items to locate the first tree node collapsed in the method. The GetNextSibling method in the tree node is called to determine the next tree node processed in the method.
Use Collapse to display a specific tree node on the tree view control in the collapsed state.
Use FullExpand to expand all of the tree nodes on the tree view control.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
