Vcl.ListActns.TCustomStaticListAction.GetItem

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetItem(const Index: Integer; AnItem: TListControlItem): Boolean;

C++

bool __fastcall GetItem(const int Index, TListControlItem* AnItem);

Properties

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

Description

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

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.

See Also