TsgCollection.Add

TsgCollection

  Classes Reference > List Classes > TsgCollection > Methods >

TsgCollection.Add

TsgCollection

Previous pageReturn to chapter overviewNext page

Inserts a new item at the end of the collection.

Syntax

function Add(const Item: TsgHashItem): Integer; overload;

function Add(const AHashCode: UInt64; const AData: Pointer): Integer; overload;

Description

Call Add to insert a new object at the end of the Items array. Add returns the index of the new item, where the first item in the collection has an index of 0. Add increments Count and, if necessary, allocates memory by increasing the value of Capacity.

Go to CAD VCL Enterprise