Vcl.ComCtrls.TCustomTreeView.Select

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

virtual void __fastcall Select(TTreeNode* Node, System::Classes::TShiftState ShiftState = System::Classes::TShiftState() )/* overload */;
virtual void __fastcall Select(TTreeNode* const *Nodes, const int Nodes_High)/* overload */;
virtual void __fastcall Select(System::Classes::TList* Nodes)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TCustomTreeView

Description

Select specified 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.