Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxDynamicItemList.CreateItem(Integer) Method

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

#Declaration

Delphi
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