Vcl.ComCtrls.TCustomTreeView.MultiSelectStyle
Delphi
property MultiSelectStyle: TMultiSelectStyle read FMultiSelectStyle write SetMultiSelectStyle default [msControlSelect];
C++
__property TMultiSelectStyle MultiSelectStyle = {read=FMultiSelectStyle, write=SetMultiSelectStyle, default=1};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | protected | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TCustomTreeView |
Description
Determines how multiple node selections work.
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.