System.Classes.TCollection.Insert

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Insert(Index: Integer): TCollectionItem;

C++

TCollectionItem* __fastcall Insert(int Index);

Properties

Type Visibility Source Unit Parent
function public
System.Classes.pas
System.Classes.hpp
System.Classes TCollection

Description

Creates a new TCollectionItem instance and adds it to the Items array.

Call Insert to add a new item at a specified position in the collection. Existing items (starting from the specified position) are moved up in the Items array.

Insert returns the new collection item.

See Also