Sign in Join
FPDoc Onlineexperiment

TCustomListView.ClearSelection procedure

Member of TCustomListViewpublicIn unit ComCtrls

Clears the selected items for the list view control.

Declaration

pascal
procedure ClearSelection

Description

ClearSelection is a method used to remove the selected attribute for one or more of the Items in the list view control.

When MultiSelect is enabled, the widgetset class instance calls its SelectAll method to set Selected attributes to False. The ClearSelection method in Items is also called to clear the Selected attributes stored in the class instance.

If MultiSelect is not enabled, the entry in Items at the position in ItemIndex sets its Selected property to False.

See also

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