API:Vcl.ListActns.TCustomStaticListAction.GetCount
Delphi
function GetCount: Integer; override;
C++
virtual int __fastcall GetCount();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Vcl.ListActns.pas Vcl.ListActns.hpp |
Vcl.ListActns | TCustomStaticListAction |
Description
Returns the value of the Count property.
Vcl.ListActns.TCustomStaticListAction.GetCount inherits from Vcl.ListActns.TCustomListAction.GetCount. All content below this line refers to Vcl.ListActns.TCustomListAction.GetCount.
Returns the value of the Count property.
GetCount is the protected read implementation of the Count property.
In TCustomListAction, GetCount generates an OnGetItemCount event to determine the number of items that the list action supplies to clients. If there is no OnGetItemCount event handler, GetCount returns –1.
Override GetCount to specify the number of items in some other way. For example, TStaticListAction overrides GetCount to return the number of items in its internal list of items.