Skip to main content

TdxCustomTreeView.ExpandTo(TdxTreeViewNode) Method

Expands all ancestor nodes of the specified tree node.

Declaration

procedure ExpandTo(ANode: TdxTreeViewNode);

Parameters

Name Type Description
ANode TdxTreeViewNode

A tree node.

Remarks

The ExpandTo procedure expands a branch up to the specified node if at least one ancestor node is collapsed. If all ancestor nodes are expanded, an ExpandTo procedure call has no effect.

Note

You do not need to not call the ExpandTo procedure to display a specific node; call the MakeVisible procedure instead.

Code Example: Expand All Ancestor Nodes

The following code example expands Help Files and ExpressQuantumGrid nodes (expands all ancestor nodes of the node whose index is 4):

tvcFolders.ExpandTo(tvcFolders.Items[4]);

VCL Editors Library: Expanded Folders

See Also