Sign in Join
FPDoc Onlineexperiment

TListItems.ClearSelection procedure

Member of TListItemsprotectedIn unit ComCtrls

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

Declaration

pascal
procedure ClearSelection

Description

ClearSelection iterates over the values in Item and updates a TListItem instance when its State flags include the value lisSelected. The lisSelected flag value is removed from the internal member for the TListItem instance(s). The OnSelectItem event handler for the list view control is signalled (when assigned) for each of the Item instances updated in the method.

Use SelectAll to select all of the list items in the container.

See also

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