Back to Devexpress

TdxCustomTreeView.MakeVisible(TdxTreeViewNode) Method

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

latest1.3 KB
Original Source

TdxCustomTreeView.MakeVisible(TdxTreeViewNode) Method

Expands all ancestor nodes of the specified tree node and brings it into view.

Declaration

delphi
procedure MakeVisible(ANode: TdxTreeViewNode);

Parameters

NameTypeDescription
ANodeTdxTreeViewNode

A tree node.

|

Remarks

The Tree View control displays a vertical scrollbar if all nodes do not fit into the client area by height. You can call the MakeVisible procedure to scroll the content area to display the target node.

Code Example: Scroll Content to Display the Target Node

The following code example scrolls Tree View content to display the Help Files node:

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

See Also

TdxCustomTreeView Class

TdxCustomTreeView Members

dxTreeView Unit