Table of Contents

TTMSFNCMemoSources.AddSourceFromStream Method

Loads a new source buffer from a stream, deriving the name automatically, and appends it to the collection.

API unit family: TMSFNCMemo Declaring type: TTMSFNCMemoSources

Overloads

Overload 1

Loads a new source buffer from a stream, deriving the name automatically, and appends it to the collection.

function AddSourceFromStream(AStream: TStream): TTMSFNCMemoSource; overload;

Parameters

Name Description
AStream Stream containing the source text to load.

Returns

The newly created TTMSFNCMemoSource instance.

Overload 2

Loads a new source buffer from a stream with an explicit name and appends it to the collection.

function AddSourceFromStream(AStream: TStream; AName: string): TTMSFNCMemoSource; overload;

Parameters

Name Description
AStream Stream containing the source text to load.
AName Display name assigned to the new source buffer.

Returns

The newly created TTMSFNCMemoSource instance.

Overload 3

Loads a new source buffer from a stream with an explicit name and language mode and appends it to the collection.

function AddSourceFromStream(AStream: TStream; AName: string; ALanguage: TTMSFNCMemoLanguage): TTMSFNCMemoSource; overload;

Parameters

Name Description
AStream Stream containing the source text to load.
AName Display name assigned to the new source buffer.
ALanguage Syntax highlighting language applied to the new source.

Returns

The newly created TTMSFNCMemoSource instance.