API:Vcl.ComCtrls.TCustomListView.SelCount
Delphi
property SelCount: Integer read GetSelCount;
C++
__property int SelCount = {read=GetSelCount, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TCustomListView |
Description
Indicates the number of selected items.
Vcl.ComCtrls.TCustomListView.SelCount inherits from Vcl.Controls.TCustomMultiSelectListControl.SelCount. All content below this line refers to Vcl.Controls.TCustomMultiSelectListControl.SelCount.
Indicates the number of selected items.
Read SelCount to determine the number of items that are currently selected. If the value of the MultiSelect property is false, SelCount is always -1. If MultiSelect is true, the value of SelCount can be greater than 1 as well.
Note: To implement the SelCount property in a TCustomMultiSelectListControl descendant, override the protected GetSelCount method.