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

TCustomListView.ClearSelection

Clears the selected items for the list view control.

Declaration

Source position: comctrls.pp line 1644

public procedure TCustomListView.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

TCustomListView.Items

  

Collection of list items displayed on the list view control.

TCustomListView.MultiSelect

  

Allows simultaneous selection of one or more list items using Ctrl+Click, Shift+Click, Ctrl+Shift+Click, or using program code.

TListItem.Selected

  

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

TListItems.ClearSelection

  

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


Version 3.2 Generated 2024-02-25 Home