Vcl.ListActns.TCustomStaticListAction.GetCount

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

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 では,GetCountOnGetItemCount イベントを生成して,リストアクションによってクライアントに供給される項目の数を指定します。OnGetItemCount イベントハンドラがない場合,GetCount は -1 を返します。

GetCount をオーバーライドすると,ほかの方法で項目の数を指定できます。たとえば,TStaticListActionGetCount をオーバーライドして,項目の内部リストにある項目の数を返します。

関連項目