[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'ComCtrls' (#lcl)

TCustomTreeView.FullCollapse

Collapses all tree nodes on the tree view control.

Declaration

Source position: comctrls.pp line 3705

public procedure TCustomTreeView.FullCollapse;

Description

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

TCustomTreeView.Collapse

  

Performs actions needed when the specified tree node is collapsed.

TCustomTreeView.Expand

  

Expands the specified tree node and updates the scroll bars for the control.

TCustomTreeView.FullExpand

  

Expands all tree nodes on the tree view control.

TTreeNode.Collapse

  

Collapses the current tree node, and optionally collapses any descendent nodes.

TTreeNode.Expand

  

Expands the current tree node, and optionally all descendent nodes.

TTreeNode.Expanded

  

True if the node has been expanded, False when collapsed.

TTreeNode.GetNextSibling

  

Returns the next node in the tree hierarchy at the same level as the current node.

TTreeNodes.GetFirstNode

  

Gets the first tree node in the container.


Version 3.2 Generated 2024-02-25 Home