Sign in Join
FPDoc Onlineexperiment

TCustomTreeView.FullExpand procedure

Member of TCustomTreeViewpublicIn unit ComCtrls

Expands all tree nodes on the tree view control.

Declaration

pascal
procedure 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.