Skip to main content
Table of Contents

ITMSFNCBaseCollectionIO.AddItem Method

Creates a new item in the collection that corresponds to the given source object and returns it.

API unit family: TMSFNCPersistence Declaring type: ITMSFNCBaseCollectionIO

Syntax

FMX.TMSFNCPersistence.hppPascalC++
function AddItem(const AObject: TObject): TCollectionItem;
virtual System::Classes::TCollectionItem* __fastcall AddItem(System::TObject* const AObject) = 0;

Parameters

Name Description
AObject Source object whose data will populate the new collection item.

Returns

The newly added TCollectionItem that was inserted into the collection.