TTMSFNCWXCustomHTMLMemo Class
Base class for the HTML memo editor, a rich-text editor that lets users compose and format HTML content through a configurable toolbar. It provides programmatic formatting, content load and save, custom fonts and font sizes, read-only and spell-check modes, and notifications when the content or the current text style changes.
API unit family: TMSFNCWXHTMLMemo
Inherits from: TTMSFNCCustomWEBControl
Syntax
TTMSFNCWXCustomHTMLMemo = class(TTMSFNCCustomWEBControl)
Remarks
This is the customizable base type. Use the published descendant for the ready-to-use editor. Wrap multiple changes between BeginUpdate and EndUpdate to avoid repeated re-initialization.
Properties
| Name | Description |
|---|---|
| Modified | Indicates whether the content has changed since it was last loaded or saved. |
Methods
| Name | Description |
|---|---|
| BeginUpdate | Begins a batch of changes, suspending re-initialization until the matching EndUpdate call. |
| Clear | Removes all content from the editor, leaving it empty. |
| EndUpdate | Ends a batch of changes started with BeginUpdate and applies any pending updates. |
| FormatToParagraphs | Wraps the current selection or block in paragraph formatting. |
| Indent | Increases the indentation level of the current paragraph. |
| InsertList | Inserts a list at the caret position. |
| InsertParagraph | Inserts a new paragraph at the caret position. |
| InsertText | Inserts plain text at the caret position. |
| JustifyCenter | Centers the current paragraph. |
| JustifyFull | Justifies the current paragraph so that text aligns to both margins. |
| JustifyLeft | Aligns the current paragraph to the left. |
| JustifyRight | Aligns the current paragraph to the right. |
| LoadFromHTMLFile | Loads content from an HTML file, extracting the body markup when a full document is provided. |
| LoadFromHTMLStream | Loads content from a stream containing HTML, extracting the body markup when a full document is provided. |
| LoadHtmlContent | Loads HTML markup into the editor, optionally converting line breaks and escaping back-slashes. |
| Outdent | Decreases the indentation level of the current paragraph. |
| PasteHTML | Pastes HTML markup at the caret position, preserving its formatting. |
| Redo | Reapplies the most recently undone editing action. |
| RemoveFormat | Removes all character formatting from the current selection. |
| ResetContent | Resets the editor content to its initial empty state and clears the undo history. |
| SaveAsHTMLFile | Saves the current content as an HTML file. |
| SaveAsHTMLStream | Saves the current content as HTML to a stream. |
| SetFontName | Sets the font family of the current selection or at the caret position. |
| SetFontSize | Sets the font size of the current selection or at the caret position. |
| SetLineHeight | Sets the line height of the current paragraph. |
| TextBold | Toggles bold formatting on the current selection or at the caret position. |
| TextItalic | Toggles italic formatting on the current selection or at the caret position. |
| TextStrikeThrough | Toggles strike-through formatting on the current selection or at the caret position. |
| TextUnderline | Toggles underline formatting on the current selection or at the caret position. |
| ToggleCodeview | Toggles between the visual editing view and the raw HTML source (code) view. |
| Undo | Reverts the most recent editing action. |