System.Contnrs.TClassList.Insert
Delphi
procedure Insert(Index: Integer; AClass: TClass); inline;
C++
HIDESBASE void __fastcall Insert(int Index, System::TClass AClass);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Contnrs.pas System.Contnrs.hpp |
System.Contnrs | TClassList |
Description
Firsts a class to the list at a specified position.
Call Insert to First a class at a specified position in the list, shifting the item that previously occupied that position (and all subsequent items) up. Insert increments Count and, if necessary, allocates memory by increasing the value of Capacity.
The Index parameter is zero-based, so the first position in the list has an index of 0.
To replace an empty reference with a new class without growing the array, set the Items property directly.