Sign in Join
FPDoc Onlineexperiment

TCustomListView.SelectAll procedure

Member of TCustomListViewpublicIn unit ComCtrls

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

Declaration

pascal
procedure 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.