TCollection.Insert

Insert an item in the collection.

Declaration

Source position: classesh.inc line 561

public 
  function Insert(Index: Integer) : TCollectionItem;

Description

Insert creates a new item instance and inserts it in the collection at position Index, and returns the new instance.

In contrast, TCollection.Add adds a new item at the end.

Errors

None.

See also

Name Description
TCollection.Add Creates and adds a new item to the collection.
TCollection.Delete Delete an item from the collection.
TCollection.Items Indexed array of items in the collection.