Enables or disables selection of several tree-items at one time.
Source position: comctrls.pp line 3606
protected property TCustomTreeView.MultiSelect : Boolean |
MultiSelect is a Boolean property used to enable or disable selection of multiple nodes in the tree view control. The default value for the property is False, and allows a single selected node indicated in the Selection property.
When set to True, multiple nodes can be selected and stored in the Selections property. Use Ctrl+Click add or remove a node in the Selections property. Use Shift+Click to add or remove a range of nodes in the Selections property.
Changing the value for the property causes existing nodes in both Selection and Selections to be cleared.
Use MultiSelectStyle to set the multi-selection style enabled for the control.
Use the Select method to add a node to the values in Selections.
Use SelectionCount to get the number of nodes in Selections.
Use GetFirstMultiSelected or GetLastMultiSelected to get the tree node for the corresponding node in Selections.
Use ClearMultiSelection to remove all existing nodes in Selections.