RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomListAction.OnGetItemCount Event

Occurs when the list action needs to determine the number of items it supplies to client controls.

Pascal
property OnGetItemCount: TGetItemCountEvent;
C++
__property TGetItemCountEvent OnGetItemCount;

The GetCount method generates an OnGetItemCount event to supply the value of the Count property. Write an OnGetItemCount event handler to indicate the number of items for which you are supplying values in the OnGetItem event handler. 

Sender is the list action that is supplying data to client controls. 

Count returns the number of items this list action supplies to client controls. 

 

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