Skip to main content
Table of Contents

TTMSFNCMemoLines.AddObject Method

Appends a line with an associated object and returns the new line index.

API unit family: TMSFNCMemo Declaring type: TTMSFNCMemoLines

Syntax

FMX.TMSFNCMemo.hppPascalC++
function AddObject(const S: string; AObject: TObject): Integer; override;
virtual int __fastcall AddObject(const System::UnicodeString S, System::TObject* AObject);

Parameters

Name Description
S Text of the line to append.
AObject Object associated with the appended line.

Returns

Zero-based index of the newly appended line.