Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCustomTreeView.ExpandTo(TdxTreeViewNode) Method

Expands all ancestor nodes of the specified tree node.

#Declaration

Delphi
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