Sign in Join
FPDoc Onlineexperiment

TListItems.SelectAll procedure

Member of TListItemsprotectedIn unit ComCtrls

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

Declaration

pascal
procedure SelectAll

Description

SelectAll iterates over the Item values in the container, and enables the selected state for any TListItem instance not already selected.

SelectAll checks the internal state values for each of the list items to determine if lisSelected has been included in the flags. When not present, it is added to the TListItemStates set for a list item.

The OnSelectItem event handler in the list view control is signalled (when assigned) for each of the TListItem instances updated in the method.

Use ClearSelection to clear the selected state for all of the list items in the container.

See also

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