Skip to main content

TdxDynamicItemList.FindItem(Integer) Method

Returns the stored item by the specified index within the list.

Declaration

function FindItem(const AIndex: Integer): TdxDynamicListItem;

Parameters

Name Type
AIndex Integer

Returns

Type
TdxDynamicListItem

Remarks

This function is called internally by the CreateItem function and every time a list item is accessed via the Items property or its equivalent in TdxDynamicItemList class descendants.

The FindItem function returns the item located at the logical position within the list passed as the AIndex parameter. If the specified index corresponds to a gap within the list, the function returns nil.

See Also