RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomTreeView.Subselect Method

Toggle node selection.

Pascal
procedure Subselect(Node: TTreeNode; Validate: Boolean = False); virtual;
C++
virtual __fastcall Subselect(TTreeNode Node, Boolean Validate = False);

Subselect toggles the selection state of Node. If Validate is true, Subselect ensures that the selection state information in view, list, and node objects are consistent, and that only those nodes allowed by MultiSelectStyle are actually selected. 

If Subselect is called when MultiSelect is false, ETreeViewError is raised. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!