Vcl.ListActns.TCustomListAction.GetCount

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetCount: Integer; virtual;

C++

virtual int __fastcall GetCount();

Properties

Type Visibility Source Unit Parent
function protected
Vcl.ListActns.pas
Vcl.ListActns.hpp
Vcl.ListActns TCustomListAction

Description

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.

See Also