System.Classes.TCollection.Add

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Add: TCollectionItem;

C++

TCollectionItem* __fastcall Add();

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 Add to create an item in the collection. The new item is placed at the end of the Items array.

Add returns the new collection item.

See Also