Table of Contents

TTMSFNCMemoSource Class

Represents a single named document buffer inside the editor, holding its text content, language mode, caret position, breakpoints, bookmarks, and line highlights independently of other sources.

API unit family: TMSFNCMemo Inherits from: TCollectionItem

Syntax

TTMSFNCMemoSource = class(TCollectionItem)

Properties

Name Description
Bookmarks Line numbers of bookmarked positions in this source, stored as a string list of one-based line numbers.
BreakPoints Line numbers of active breakpoints in this source, stored as a string list of one-based line numbers.
CaretPosition Last-known caret position in this source; restored when the source is activated in the editor.
Language Syntax highlighting language applied when this source is active in the editor.
LineHighlights Line numbers of highlighted lines in this source, stored as a string list of one-based line numbers.
Lines Text content of this document buffer as a list of lines.
Name Display name used to identify this document buffer in the TTMSFNCMemoSources collection.
ReadOnly When True, the editor does not allow the user to modify the content of this source.

Methods

Name Description
SaveToFile Saves the content of this source to a file.
SaveToStream Saves the content of this source to a stream.

Used by