RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomStaticListAction.GetCount Method

Returns the value of the Count property.

Pascal
function GetCount: Integer; override;
C++
virtual __fastcall int GetCount();

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!