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

TCustomTreeView.FullExpand

Expands all tree nodes on the tree view control.

Declaration

Source position: comctrls.pp line 3706

public procedure TCustomTreeView.FullExpand;

Description

FullExpand is a method used to expand 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 expanded.

FullExpand visits all top-level tree nodes in Items and calls their Expand methods with recursion enabled. This causes the tree node and all of its descendent nodes to be expanded.

FullExpand calls the GetFirstNode method in Items to locate the first tree node expanded in the method. The GetNextSibling method in the tree node is called to determine the next tree node processed in the method.

Use Expand to expand a specific tree node on the tree view control.

Use FullCollapse to collapse all of the tree nodes on the tree view control.

See also

TCustomTreeView.BeginUpdate

  

Starts an update process for the tree view control.

TCustomTreeView.EndUpdate

  

Finishes an update process for the tree view control.

TCustomTreeView.FullCollapse

  

Collapses all tree nodes on the tree view control.

TCustomTreeView.Expand

  

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

TTreeNodes.GetFirstNode

  

Gets the first tree node in the container.

TTreeNode.Expand

  

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

TTreeNode.Collapse

  

Collapses the current tree node, and optionally collapses any 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.


Version 3.2 Generated 2024-02-25 Home