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

TListItems.SelectAll

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

Declaration

Source position: comctrls.pp line 1158

protected procedure TListItems.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

TListItems.Item

  

Provides indexed access to the TListItem instance in the container by their ordinal position.

TListItems.ClearSelection

  

Clears the selected state for all TListItem instances in the container.

TListItem.Selected

  

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

TCustomListView.OnSelectItem

  

Event handler signalled when the selected list item for the control is changed.


Version 3.2 Generated 2024-02-25 Home