RAD Studio VCL Reference
TCustomMultiSelectListControl.SelCount Property

Indicates the number of selected items.

property SelCount: Integer;
__property int SelCount;

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.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!