TdxCustomTreeView.ExpandTo(TdxTreeViewNode) Method
Expands all ancestor nodes of the specified tree node.
#Declaration
procedure ExpandTo(ANode: TdxTreeViewNode);
#Parameters
Name | Type | Description |
---|---|---|
ANode | Tdx |
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 Expand
procedure to display a specific node; call the Make
#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
):