RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TTreeView.MultiSelectStyle Property

Determines how multiple node selections work.

Pascal
property MultiSelectStyle: TMultiSelectStyle;
C++
__property TMultiSelectStyle MultiSelectStyle;

MultiSelectStyle determines how multiple selections are made when MultiSelect is true. MultiSelectStyle must include at least one of the following values.

Value 
Meaning 
msControlSelect  
Clicking on any node with the Control key pressed toggles the selection of that node.  
msShiftSelect  
Clicking on any node with the Shift key pressed selects that node, the last single node selected, and the nodes in between. All other nodes are deselected.  
msVisibleOnly  
Multiple selections with the Shift key do not include child nodes of collapsed nodes.  
msSiblingOnly  
Selected nodes are restricted to a single set of siblings.  

If msControlSelect or msShiftSelect are in effect, the last singly-selected node becomes the primary selection, referenced by Selections[0]. The primary selection is the anchor for extended selections using the Shift key. 

 

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