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