Back to Devexpress

TdxCustomTreeView.ExpandTo(TdxTreeViewNode) Method

vcl-dxtreeview-dot-tdxcustomtreeview-dot-expandto-x28-dxtreeview-dot-tdxtreeviewnode-x29.md

latest1.5 KB
Original Source

TdxCustomTreeView.ExpandTo(TdxTreeViewNode) Method

Expands all ancestor nodes of the specified tree node.

Declaration

delphi
procedure ExpandTo(ANode: TdxTreeViewNode);

Parameters

NameTypeDescription
ANodeTdxTreeViewNode

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):

delphi
tvcFolders.ExpandTo(tvcFolders.Items[4]);
cpp
tvcFolders->ExpandTo(tvcFolders->Items[4]);

See Also

TdxCustomTreeView.MakeVisible Procedure

TdxCustomTreeView Class

TdxCustomTreeView Members

dxTreeView Unit