Skip to main content

TdxDynamicItemList.CreateItem(Integer) Method

Creates a new item at the specified position within the list.

Declaration

function CreateItem(const AIndex: Integer): TdxDynamicListItem;

Parameters

Name Type
AIndex Integer

Returns

Type
TdxDynamicListItem

Remarks

This function creates a new item at the blank position within the list passed as the AIndex parameter. If the specified position is already occupied, the CreateItem function returns the stored item instead of creating a new one.

The CreateItem function creates an item by calling its actual constructor via the GetItemClass function result.

Note

The DeleteItem procedure only unlinks the specified item from the list. Only the Clear procedure actually destroys items.

See Also