Skip to main content
Table of Contents

TTMSFNCMemoSources.AddSource Method

Creates a new source buffer from a text string with optional language and name settings, and appends it to the collection.

API unit family: TMSFNCMemo Declaring type: TTMSFNCMemoSources

Syntax

FMX.TMSFNCMemo.hppPascalC++
function AddSource(AText: string=''; ALanguage: TTMSFNCMemoLanguage = mlPascal;AName:string=''): TTMSFNCMemoSource; overload;
TTMSFNCMemoSource* __fastcall AddSource(System::UnicodeString AText = System::UnicodeString(), TTMSFNCMemoLanguage ALanguage = (TTMSFNCMemoLanguage)(0x2b), System::UnicodeString AName = System::UnicodeString())/* overload */;

Parameters

Name Description
AText Initial text content of the new source buffer.
ALanguage Syntax highlighting language applied to the new source; defaults to Pascal.
AName Display name assigned to the new source buffer.

Returns

The newly created TTMSFNCMemoSource instance.