[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'ComCtrls' (#lcl)

TCustomTreeView.Select

Makes the specified node(s) become selected in the control.

Declaration

Source position: comctrls.pp line 3681

public procedure TCustomTreeView.Select(

  Node: TTreeNode;

  ShiftState: TShiftState = []

);

procedure TCustomTreeView.Select(

  const Nodes: array of TTreeNode

); virtual;

procedure TCustomTreeView.Select(

  Nodes: TList

); virtual;

Arguments

Node

  

Tree node assigned to Selected in the method.

ShiftState

  

Shift state for the selection; Shift assumes multi-selection is enabled.

Arguments

Nodes

  

Array or TList with TTreeNode instances to add to the Selections in the control; assumes multi-select is enabled.

Arguments

Nodes

  

Array or TList with TTreeNode instances to add to the Selections in the control; assumes multi-select is enabled.

Description

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 latest version of this document can be found at lazarus-ccr.sourceforge.net.