[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Makes the specified node(s) become selected in the control.
Source position: comctrls.pp line 3716
public procedure TCustomTreeView.Select( |
Node: TTreeNode; |
ShiftState: TShiftState = [] |
); |
const Nodes: array of TTreeNode |
); virtual; |
Nodes: TList |
); virtual; |
Node |
|
Tree node assigned to Selected in the method. |
ShiftState |
|
Shift state for the selection; Shift assumes multi-selection is enabled. |
Nodes |
|
Array or TList with TTreeNode instances to add to the Selections in the control; assumes multi-select is enabled. |
Nodes |
|
Array or TList with TTreeNode instances to add to the Selections in the control; assumes multi-select is enabled. |
Select is an overloaded method used to make a node, array of nodes, or list of nodes become selected in the tree view control.
The overloaded variant with a TShiftState value allows the specified node to be added to the existing multi-selection when Shift contains ssCtrl. If Shift does not include ssCtrl, ClearSelections is called prior to storing the node in Selected.
The variants which accept either an array or a list of nodes always call ClearSelections to reset the selected state for multi-selected nodes. The first TTreeNode instance in either is stored in Selected. When tvoAllowMultiSelect has been included in Options, the Selected property in each of the tree nodes is set to True.
Use ClearSelections to reset the state for any selected nodes on the tree view control.
Version 3.2 | Generated 2024-02-25 | Home |