API:Vcl.ComCtrls.TCustomListView.SelCount

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

property SelCount: Integer read GetSelCount;

C++

__property int SelCount = {read=GetSelCount, nodefault};

プロパティ

種類 可視性 ソース ユニット
property public
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TCustomListView

説明

選択項目の数を示します。

Vcl.ComCtrls.TCustomListView.SelCount は Vcl.Controls.TCustomMultiSelectListControl.SelCount を継承しています。以下の内容はすべて Vcl.Controls.TCustomMultiSelectListControl.SelCount を参照しています。

選択項目の数を示します。

SelCount プロパティを読み取ると、現在選択中の項目数を判別できます。MultiSelect プロパティが false のときは、SelCount は常に -1 です。MultiSelect プロパティが true の場合、SelCount の値は 1 以上の値になります。

メモ:  TCustomMultiSelectListControl の下位オブジェクトで SelCount プロパティを実装するには、protected Get SelCount メソッドをオーバーライドします。

関連項目