Table of Contents

TTMSFNCMemo Class

Provides a syntax-aware memo editor with source management, search, formatting, and editor events.

API unit family: TMSFNCMemo Inherits from: TTMSFNCCustomMemo

Syntax

TTMSFNCMemo = class(TTMSFNCCustomMemo)

Properties

Name Description
ActiveSource Gets or sets the active source document index. (inherited from TTMSFNCCustomMemo)
Bookmarks Gets or sets whether the specified line has a bookmark when True. (inherited from TTMSFNCCustomMemo)
BookmarksCount Gets the number of bookmarked lines. (inherited from TTMSFNCCustomMemo)
BreakPointCount Gets the number of breakpoint lines. (inherited from TTMSFNCCustomMemo)
BreakPoints Gets or sets whether the specified line has a breakpoint when True. (inherited from TTMSFNCCustomMemo)
CaretPosition Gets or sets the current caret position. (inherited from TTMSFNCCustomMemo)
CompletionList Gets or sets the code-completion suggestion list. (inherited from TTMSFNCCustomMemo)
CustomLanguageID Gets or sets the active custom language identifier. (inherited from TTMSFNCCustomMemo)
CustomLanguages Gets or sets the registered custom language references. (inherited from TTMSFNCCustomMemo)
CustomThemeName Gets or sets the active custom theme name. (inherited from TTMSFNCCustomMemo)
CustomThemes Gets or sets the registered custom theme references. (inherited from TTMSFNCCustomMemo)
Font Gets or sets the editor font settings. (inherited from TTMSFNCCustomMemo)
Language Gets or sets the syntax highlighting language. (inherited from TTMSFNCCustomMemo)
LanguageFileExtensionsMap Gets or sets the file-extension to language map. (inherited from TTMSFNCCustomMemo)
LibraryLocation Gets or sets where the editor support library is loaded from. (inherited from TTMSFNCCustomMemo)
LineHighlight Gets or sets whether the specified line is highlighted when True. (inherited from TTMSFNCCustomMemo)
LineHighlightCount Gets the number of highlighted lines. (inherited from TTMSFNCCustomMemo)
Lines Gets or sets the editor lines. (inherited from TTMSFNCCustomMemo)
Options Gets or sets the editor behavior and display options. (inherited from TTMSFNCCustomMemo)
SelLength Gets or sets the current selection length. (inherited from TTMSFNCCustomMemo)
SelStart Gets or sets the current selection start position. (inherited from TTMSFNCCustomMemo)
SelText Gets or sets the current selected text. (inherited from TTMSFNCCustomMemo)
Sources Gets or sets the source document collection. (inherited from TTMSFNCCustomMemo)
Text Gets or sets the editor text. (inherited from TTMSFNCCustomMemo)
Theme Gets or sets the editor theme. (inherited from TTMSFNCCustomMemo)
WantTab Gets or sets whether pressing Tab inserts a tab character when True. (inherited from TTMSFNCCustomMemo)

Methods

Name Description
AddSourceFromFile Adds a source document loaded from a file. (inherited from TTMSFNCCustomMemo)
AddSourceFromStream Adds a source document loaded from a stream. (inherited from TTMSFNCCustomMemo)
AddSourcesFromFolder Adds source documents from the specified folder. (inherited from TTMSFNCCustomMemo)
BeginUpdate Starts a batched update and delays visual refreshes until EndUpdate is called. (inherited from TTMSFNCCustomMemo)
Clear Clears the editor content. (inherited from TTMSFNCCustomMemo)
CopyToClipBoard Copies the current selection to the clipboard. (inherited from TTMSFNCCustomMemo)
CutToClipBoard Cuts the current selection to the clipboard. (inherited from TTMSFNCCustomMemo)
DeleteSelection Deletes the current selection. (inherited from TTMSFNCCustomMemo)
EndUpdate Ends a batched update and refreshes the editor. (inherited from TTMSFNCCustomMemo)
Find Starts a search for the specified text using the supplied options and behavior. (inherited from TTMSFNCCustomMemo)
FindAll Searches for all matches of the specified text using the supplied options. (inherited from TTMSFNCCustomMemo)
FindAllInRange Searches for all matches inside the specified range using the supplied options. (inherited from TTMSFNCCustomMemo)
FindNext Searches for the next match using the supplied options. (inherited from TTMSFNCCustomMemo)
FindPrevious Searches for the previous match using the supplied options. (inherited from TTMSFNCCustomMemo)
FindSource Returns the source document with the specified name. (inherited from TTMSFNCCustomMemo)
FoldAll Folds all foldable code sections. (inherited from TTMSFNCCustomMemo)
FormatDocument Formats the entire document. (inherited from TTMSFNCCustomMemo)
FormatSelection Formats the current selection. (inherited from TTMSFNCCustomMemo)
GoToBookmark Moves the caret to the specified bookmark. (inherited from TTMSFNCCustomMemo)
GoToBreakPoint Moves the caret to the specified breakpoint. (inherited from TTMSFNCCustomMemo)
GoToLineHighlight Moves the caret to the specified highlighted line. (inherited from TTMSFNCCustomMemo)
LoadFromFile Loads editor content from a file. (inherited from TTMSFNCCustomMemo)
LoadFromURL Loads editor content from a URL. (inherited from TTMSFNCCustomMemo)
PasteFromClipBoard Pastes text from the clipboard. (inherited from TTMSFNCCustomMemo)
PosToTextPos Converts a caret position to a text position. (inherited from TTMSFNCCustomMemo)
ReInitialize Reinitializes the editor. (inherited from TTMSFNCCustomMemo)
Redo Reapplies the most recently undone change. (inherited from TTMSFNCCustomMemo)
RemoveSource Removes the source document with the specified name. (inherited from TTMSFNCCustomMemo)
Replace Replaces a specific range with the supplied text. (inherited from TTMSFNCCustomMemo)
ReplaceAll Replaces all matches using the supplied search options. (inherited from TTMSFNCCustomMemo)
ReplaceNext Replaces the next match using the supplied search options. (inherited from TTMSFNCCustomMemo)
ReplacePrevious Replaces the previous match using the supplied search options. (inherited from TTMSFNCCustomMemo)
ScrollToLine Scrolls the editor to the specified line. (inherited from TTMSFNCCustomMemo)
ScrollToLineCenter Scrolls the editor to the specified line and centers it in view. (inherited from TTMSFNCCustomMemo)
SelectAll Selects all editor content. (inherited from TTMSFNCCustomMemo)
ShowFindDialog Shows the find dialog. (inherited from TTMSFNCCustomMemo)
TextPosToPos Converts a text position to a caret position. (inherited from TTMSFNCCustomMemo)
Undo Reverts the most recent change. (inherited from TTMSFNCCustomMemo)
UnfoldAll Unfolds all folded code sections. (inherited from TTMSFNCCustomMemo)
Unselect Clears the current selection. (inherited from TTMSFNCCustomMemo)
XYToPos Converts editor coordinates to a caret position. (inherited from TTMSFNCCustomMemo)

Events

Name Description
OnChange Occurs when the editor content changes. (inherited from TTMSFNCCustomMemo)
OnChangeTracking Occurs while editor content changes are being tracked. (inherited from TTMSFNCCustomMemo)
OnFindAll Occurs after all matching search results have been collected. (inherited from TTMSFNCCustomMemo)
OnFindNext Occurs after the next matching search result has been found. (inherited from TTMSFNCCustomMemo)
OnFindPrevious Occurs after the previous matching search result has been found. (inherited from TTMSFNCCustomMemo)
OnGetCodeCompletion Occurs when code-completion suggestions are requested. (inherited from TTMSFNCCustomMemo)
OnGlyphMarginClick Occurs when the glyph margin is clicked. (inherited from TTMSFNCCustomMemo)
OnGlyphMarginMiddleClick Occurs when the glyph margin is middle-clicked. (inherited from TTMSFNCCustomMemo)
OnGlyphMarginRightClick Occurs when the glyph margin is right-clicked. (inherited from TTMSFNCCustomMemo)
OnGutterClick Occurs when the gutter is clicked. (inherited from TTMSFNCCustomMemo)
OnGutterMiddleClick Occurs when the gutter is middle-clicked. (inherited from TTMSFNCCustomMemo)
OnGutterRightClick Occurs when the gutter is right-clicked. (inherited from TTMSFNCCustomMemo)
OnInitialized Occurs after the editor has finished initialization. (inherited from TTMSFNCCustomMemo)
OnLineNumberClick Occurs when a line number is clicked. (inherited from TTMSFNCCustomMemo)
OnLineNumberMiddleClick Occurs when a line number is middle-clicked. (inherited from TTMSFNCCustomMemo)
OnLineNumberRightClick Occurs when a line number is right-clicked. (inherited from TTMSFNCCustomMemo)
OnLinkClick Occurs when a detected link is clicked. (inherited from TTMSFNCCustomMemo)
OnPaste Occurs when text is pasted into the editor. (inherited from TTMSFNCCustomMemo)
OnReplaceAll Occurs after all matching search results have been replaced. (inherited from TTMSFNCCustomMemo)
OnReplaceNext Occurs after the next matching search result has been replaced. (inherited from TTMSFNCCustomMemo)
OnReplacePrevious Occurs after the previous matching search result has been replaced. (inherited from TTMSFNCCustomMemo)

Used by