[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'ComCtrls' (#lcl)

TCustomListView.SelectAll

Selects all Items in the control when MultiSelect has been enabled.

Declaration

Source position: comctrls.pp line 1645

public procedure TCustomListView.SelectAll;

Description

SelectAll is a method used to mark each of the TListItem instances in the Items property as selected on the list view control. No actions are performed in the method if MultiSelect is set to False.

SelectAll calls the corresponding method in the widgetset class when its handle has been allocated. The SelectAll method in Items is called to select the items in the class instance. The state flag values in each of the list item are updated, and the OnSelectItem event handler is signalled (when assigned) for the modified list items. The updates are enclosed by BeginUpdate..EndUpdate to minimize screen refreshes when the list item states are changed.

Use ClearSelection to remove the selected attribute for each of the Items on the control.

See also

TCustomListView.MultiSelect

  

Allows simultaneous selection of one or more list items using Ctrl+Click, Shift+Click, Ctrl+Shift+Click, or using program code.

TCustomListView.Items

  

Collection of list items displayed on the list view control.

TCustomListView.ClearSelection

  

Clears the selected items for the list view control.

TListItems.SelectAll

  

Sets the selected state to True for all TListItem instances in the container.

TListItem.Selected

  

Whether this Item has been Selected (often denoted by a check-mark).


Version 3.2 Generated 2024-02-25 Home