Table of Contents

TTMSFNCMemoSources Class

An ordered collection of document buffers that can be loaded into the code editor, enabling multi-file editing by switching the active source.

API unit family: TMSFNCMemo Inherits from: TTMSFNCOwnedCollection

Syntax

TTMSFNCMemoSources = class(TTMSFNCOwnedCollection)

Properties

Name Description
Items Returns the source buffer at the given zero-based index.

Methods

Name Description
Add Appends a new empty source buffer to the collection.
AddSource Creates a new source buffer from a text string with optional language and name settings, and appends it to the collection.
AddSourceFromFile Loads a new source buffer from a file, deriving the name and language from the file path, and appends it to the collection.
AddSourceFromStream Loads a new source buffer from a stream, deriving the name automatically, and appends it to the collection.
Find Searches the collection for a source whose Name matches the specified string and returns it, or nil if not found.
IndexOf Returns the zero-based index of the source whose Name matches the specified string, or -1 if not found.
Insert Inserts a new empty source buffer at the specified position.