TTMSFNCCustomMemo Class
Base class for the code editor control, providing Monaco-based syntax highlighting, multi-source document management, code folding, minimap, find/replace, gutter events, and custom language and theme registration.
API unit family: TMSFNCMemo
Inherits from: TTMSFNCCustomWEBControl
Syntax
TTMSFNCCustomMemo = class(TTMSFNCCustomWEBControl)
Properties
| Name | Description |
|---|---|
| ActiveSource | Gets or sets the active source document index. |
| Bookmarks | Gets or sets whether the specified line has a bookmark when True. |
| BookmarksCount | Gets the number of bookmarked lines. |
| BreakPointCount | Gets the number of breakpoint lines. |
| BreakPoints | Gets or sets whether the specified line has a breakpoint when True. |
| CaretPosition | Gets or sets the current caret position. |
| LineHighlight | Gets or sets whether the specified line is highlighted when True. |
| LineHighlightCount | Gets the number of highlighted lines. |
| SelLength | Gets or sets the current selection length. |
| SelStart | Gets or sets the current selection start position. |
| SelText | Gets or sets the current selected text. |
| Text | Gets or sets the editor text. |
Methods
| Name | Description |
|---|---|
| AddSourceFromFile | Adds a source document loaded from a file. |
| AddSourceFromStream | Adds a source document loaded from a stream. |
| AddSourcesFromFolder | Adds source documents from the specified folder. |
| BeginUpdate | Starts a batched update and delays visual refreshes until EndUpdate is called. |
| Clear | Clears the editor content. |
| CopyToClipBoard | Copies the current selection to the clipboard. |
| CutToClipBoard | Cuts the current selection to the clipboard. |
| DeleteSelection | Deletes the current selection. |
| EndUpdate | Ends a batched update and refreshes the editor. |
| Find | Starts a search for the specified text using the supplied options and behavior. |
| FindAll | Searches for all matches of the specified text using the supplied options. |
| FindAllInRange | Searches for all matches inside the specified range using the supplied options. |
| FindNext | Searches for the next match using the supplied options. |
| FindPrevious | Searches for the previous match using the supplied options. |
| FindSource | Returns the source document with the specified name. |
| FoldAll | Folds all foldable code sections. |
| FormatDocument | Formats the entire document. |
| FormatSelection | Formats the current selection. |
| GoToBookmark | Moves the caret to the specified bookmark. |
| GoToBreakPoint | Moves the caret to the specified breakpoint. |
| GoToLineHighlight | Moves the caret to the specified highlighted line. |
| LoadFromFile | Loads editor content from a file. |
| LoadFromURL | Loads editor content from a URL. |
| PasteFromClipBoard | Pastes text from the clipboard. |
| PosToTextPos | Converts a caret position to a text position. |
| ReInitialize | Reinitializes the editor. |
| Redo | Reapplies the most recently undone change. |
| RemoveSource | Removes the source document with the specified name. |
| Replace | Replaces a specific range with the supplied text. |
| ReplaceAll | Replaces all matches using the supplied search options. |
| ReplaceNext | Replaces the next match using the supplied search options. |
| ReplacePrevious | Replaces the previous match using the supplied search options. |
| ScrollToLine | Scrolls the editor to the specified line. |
| ScrollToLineCenter | Scrolls the editor to the specified line and centers it in view. |
| SelectAll | Selects all editor content. |
| ShowFindDialog | Shows the find dialog. |
| TextPosToPos | Converts a text position to a caret position. |
| Undo | Reverts the most recent change. |
| UnfoldAll | Unfolds all folded code sections. |
| Unselect | Clears the current selection. |
| XYToPos | Converts editor coordinates to a caret position. |