Allows simultaneous selection of one or more list items using Ctrl+Click, Shift+Click, Ctrl+Shift+Click, or using program code.
Source position: comctrls.pp line 1651
public property TCustomListView.MultiSelect : Boolean |
MultiSelect is a Boolean property which indicates if multiple simultaneous item selections are allows in the list view control. The default value for the property is False, and allows a single selection as reflected in the Selected property.
When set to True, multiple entries in the Items property can bemarked as Selected. This can be achieved in program code by iterating over the TListItem instances in Items, and setting the Selected property for the appropriate items. At run-time, the mouse can be use toggle the selected state for one or more of the list items.
Use SelCount to get the number of selected items when MultiSelect is enabled. Use Items to access the list items to check the values in their Selected properties.
Use SelectAll to set the selected state to True for all of the Items on the control.
Use ClearSelection to clear the selected state for all of the Items on the control.
|
Collection of list items displayed on the list view control. |
|
|
Number of currently selected Items when MultiSelect is enabled. |
|
|
Contains the selected list item in the list view control. |
|
|
Selects all Items in the control when MultiSelect has been enabled. |
|
|
Clears single or multi-selections in the control. |
|
|
Whether this Item has been Selected (often denoted by a check-mark). |