RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomTreeView.Select Method (TList)

Select specified nodes.

Pascal
procedure Select(Node: TTreeNode; ShiftState: TShiftState = []); virtual; overload;
procedure Select(const Nodes: array of TTreeNode); virtual; overload;
procedure Select(Nodes: TList); virtual; overload;
C++
virtual __fastcall Select(TTreeNode Node, TShiftState ShiftState = []);
virtual __fastcall Select(const array of TTreeNode Nodes);
virtual __fastcall Select(TList Nodes);

The select method selects one or more tree nodes. 

In the first two forms, all nodes in the Nodes parameter are selected. Any other selected nodes are deselected. 

In the third form, Node is selected as if clicked with the mouse. To achieve the effect of using the Control key, the Shift key, or the right mouse button, include ssCtrl, ssShift, or ssRight in the ShiftState parameter. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!