[Overview][Constants][Types][Classes][Procedures and functions][Index] |
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 1667
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 be marked 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.
MultiSelect is one of the TListViewProperty values included in the TListViewProperties set type and exchanged with the widgetset class. The property value is read from and written to the TCustomTreeview widgetset class instance when its handle is valid. Changing the value for the property causes the widgetset class to be updated with the new value.
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 the selected items for the list view control. |
|
|
Whether this Item has been Selected (often denoted by a check-mark). |
|
|
Set type used to store values from the TListViewProperty enumeration. |
|
|
Represents Boolean properties used in TCustomListView. |
Version 3.2 | Generated 2024-02-25 | Home |