API:Vcl.ComCtrls.TTreeView.MultiSelectStyle
Delphi
property MultiSelectStyle: TMultiSelectStyle read FMultiSelectStyle write SetMultiSelectStyle default 1;
C++
__property MultiSelectStyle = {default=1};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TTreeView |
Description
Determines how multiple node selections work.
Vcl.ComCtrls.TTreeView.MultiSelectStyle inherits from Vcl.ComCtrls.TCustomTreeView.MultiSelectStyle. All content below this line refers to Vcl.ComCtrls.TCustomTreeView.MultiSelectStyle.
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.