API:Vcl.ListActns.TCustomStaticListAction.GetCount
Delphi
function GetCount: Integer; override;
C++
virtual int __fastcall GetCount();
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | protected | Vcl.ListActns.pas Vcl.ListActns.hpp |
Vcl.ListActns | TCustomStaticListAction |
説明
Count プロパティの値を返します。
Vcl.ListActns.TCustomStaticListAction.GetCount は Vcl.ListActns.TCustomListAction.GetCount を継承しています。以下の内容はすべて Vcl.ListActns.TCustomListAction.GetCount を参照しています。
Count プロパティの値を返します。
GetCount メソッドは,Count プロパティの読み出し専用のプロテクトメソッドです。
TCustomListAction では,GetCount で OnGetItemCount イベントを生成して,リストアクションによってクライアントに供給される項目の数を指定します。OnGetItemCount イベントハンドラがない場合,GetCount は -1 を返します。
GetCount をオーバーライドすると,ほかの方法で項目の数を指定できます。たとえば,TStaticListAction は GetCount をオーバーライドして,項目の内部リストにある項目の数を返します。