Sign in Join
FPDoc Onlineexperiment

TCustomListView.SelCount property

Member of TCustomListViewpublicIn unit ComCtrls

Number of currently selected Items when MultiSelect is enabled.

Declaration

pascal
property SelCount: Integer read GetSelCount;

Description

SelCount is a read-only Integer property with the number selected entries in Items. SelCount is relevant when MultiSelect is set to True; otherwise, the single selected item is found in the Selected property.

If the Handle has been allocated for the widgetset class, the value from the GetSelCount method is used as the property value. Otherwise, the property value is calculated by counting the number of TListItem instances in Items that have their Selected property set to True. The return value is 0 when none of the Items have a selected property set to True.

Use GetNextItem with the lisSelected item state to retrieve a multi-selected item that is adjacent to another selected item.

See also

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