Create(TdxDynamicItemList,Integer) Constructor
Creates a new item at the specified position within the dynamic item list.
Declaration
constructor Create(AOwner: TdxDynamicItemList; AIndex: Integer); virtual;
Parameters
Name | Type | Description |
---|---|---|
AOwner | TdxDynamicItemList | The parent dynamic item list. |
AIndex | Integer | The target item position within the specified parent list. |
Remarks
Call this constructor to create a new item within the dynamic list passed as the AOwner parameter. The newly created item’s position within the list is determined by a zero-based index passed as the AIndex parameter. The specified index initializes the Index property.
To destroy a dynamic list item, call the dynamic list’s DeleteItem procedure.
Note
TdxDynamicListItem class descendants normally override the Create constructor to initialize the item’s type-specific properties and fields.
See Also