RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomStaticListAction.GetItem Method

Fills in a specified item to match the corresponding item in the Items list.

Pascal
function GetItem(const Index: Integer; AnItem: TListControlItem): Boolean;
C++
__fastcall Boolean GetItem(const int Index, TListControlItem AnItem);

When you set the Active property to True, the static list action supplies items to client controls through a series of calls to GetItem, one for each item. Index indicates which item is desired, where 0 indicates the first item, 1 indicates the second item and so on up to the number of items specified by the Count property. AnItem is the item supplied to clients. GetItem assigns the properties of the corresponding item in the Items property to AnItem

 

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