Table of Contents

TTMSFNCWXHTMLMemo Class

A rich-text HTML editor control that lets users compose and format HTML content through a configurable toolbar. It publishes the inherited editing, formatting, content, and notification features for design-time and run-time use.

API unit family: TMSFNCWXHTMLMemo Inherits from: TTMSFNCWXCustomHTMLMemo

Syntax

TTMSFNCWXHTMLMemo = class(TTMSFNCWXCustomHTMLMemo)

Properties

Name Description
AllowDrop When True, content can be dropped onto the editor from an external source. (inherited from TTMSFNCWXCustomHTMLMemo)
CaretPos Gets the current caret position within the editor content area. (inherited from TTMSFNCWXCustomHTMLMemo)
CustomCSS Gets or sets additional CSS rules injected into the editor to customize its appearance. (inherited from TTMSFNCWXCustomHTMLMemo)
CustomFontSizes Lists the font sizes offered in the toolbar font-size selector. (inherited from TTMSFNCWXCustomHTMLMemo)
CustomFonts Lists additional font family names offered in the toolbar font selector. (inherited from TTMSFNCWXCustomHTMLMemo)
FontSizeUnit Specifies the measurement unit applied to font sizes in the editor. (inherited from TTMSFNCWXCustomHTMLMemo)
HTML Gets or sets the HTML content of the editor as a list of text lines. (inherited from TTMSFNCWXCustomHTMLMemo)
LibraryLocation Determines whether the editor scripts and styles are loaded from an online or offline location. (inherited from TTMSFNCWXCustomHTMLMemo)
Modified Indicates whether the content has changed since it was last loaded or saved. (inherited from TTMSFNCWXCustomHTMLMemo)
PlainText Gets the plain-text representation of the current content, with markup removed. (inherited from TTMSFNCWXCustomHTMLMemo)
ReadOnly When True, the content is displayed for viewing only and cannot be edited. (inherited from TTMSFNCWXCustomHTMLMemo)
SpellCheck When True, spell checking is enabled in the editor content area. (inherited from TTMSFNCWXCustomHTMLMemo)
Toolbar Provides access to the toolbar configuration, including visibility and available buttons. (inherited from TTMSFNCWXCustomHTMLMemo)

Methods

Name Description
BeginUpdate Begins a batch of changes, suspending re-initialization until the matching EndUpdate call. (inherited from TTMSFNCWXCustomHTMLMemo)
Clear Removes all content from the editor, leaving it empty. (inherited from TTMSFNCWXCustomHTMLMemo)
EndUpdate Ends a batch of changes started with BeginUpdate and applies any pending updates. (inherited from TTMSFNCWXCustomHTMLMemo)
FormatToParagraphs Wraps the current selection or block in paragraph formatting. (inherited from TTMSFNCWXCustomHTMLMemo)
Indent Increases the indentation level of the current paragraph. (inherited from TTMSFNCWXCustomHTMLMemo)
InsertList Inserts a list at the caret position. (inherited from TTMSFNCWXCustomHTMLMemo)
InsertParagraph Inserts a new paragraph at the caret position. (inherited from TTMSFNCWXCustomHTMLMemo)
InsertText Inserts plain text at the caret position. (inherited from TTMSFNCWXCustomHTMLMemo)
JustifyCenter Centers the current paragraph. (inherited from TTMSFNCWXCustomHTMLMemo)
JustifyFull Justifies the current paragraph so that text aligns to both margins. (inherited from TTMSFNCWXCustomHTMLMemo)
JustifyLeft Aligns the current paragraph to the left. (inherited from TTMSFNCWXCustomHTMLMemo)
JustifyRight Aligns the current paragraph to the right. (inherited from TTMSFNCWXCustomHTMLMemo)
LoadFromHTMLFile Loads content from an HTML file, extracting the body markup when a full document is provided. (inherited from TTMSFNCWXCustomHTMLMemo)
LoadFromHTMLStream Loads content from a stream containing HTML, extracting the body markup when a full document is provided. (inherited from TTMSFNCWXCustomHTMLMemo)
LoadHtmlContent Loads HTML markup into the editor, optionally converting line breaks and escaping back-slashes. (inherited from TTMSFNCWXCustomHTMLMemo)
Outdent Decreases the indentation level of the current paragraph. (inherited from TTMSFNCWXCustomHTMLMemo)
PasteHTML Pastes HTML markup at the caret position, preserving its formatting. (inherited from TTMSFNCWXCustomHTMLMemo)
Redo Reapplies the most recently undone editing action. (inherited from TTMSFNCWXCustomHTMLMemo)
RemoveFormat Removes all character formatting from the current selection. (inherited from TTMSFNCWXCustomHTMLMemo)
ResetContent Resets the editor content to its initial empty state and clears the undo history. (inherited from TTMSFNCWXCustomHTMLMemo)
SaveAsHTMLFile Saves the current content as an HTML file. (inherited from TTMSFNCWXCustomHTMLMemo)
SaveAsHTMLStream Saves the current content as HTML to a stream. (inherited from TTMSFNCWXCustomHTMLMemo)
SetFontName Sets the font family of the current selection or at the caret position. (inherited from TTMSFNCWXCustomHTMLMemo)
SetFontSize Sets the font size of the current selection or at the caret position. (inherited from TTMSFNCWXCustomHTMLMemo)
SetLineHeight Sets the line height of the current paragraph. (inherited from TTMSFNCWXCustomHTMLMemo)
TextBold Toggles bold formatting on the current selection or at the caret position. (inherited from TTMSFNCWXCustomHTMLMemo)
TextItalic Toggles italic formatting on the current selection or at the caret position. (inherited from TTMSFNCWXCustomHTMLMemo)
TextStrikeThrough Toggles strike-through formatting on the current selection or at the caret position. (inherited from TTMSFNCWXCustomHTMLMemo)
TextUnderline Toggles underline formatting on the current selection or at the caret position. (inherited from TTMSFNCWXCustomHTMLMemo)
ToggleCodeview Toggles between the visual editing view and the raw HTML source (code) view. (inherited from TTMSFNCWXCustomHTMLMemo)
Undo Reverts the most recent editing action. (inherited from TTMSFNCWXCustomHTMLMemo)

Events

Name Description
OnContentChange Occurs when the editor content changes, providing the HTML and plain-text values. (inherited from TTMSFNCWXCustomHTMLMemo)
OnFocus Occurs when the editor content area receives input focus. (inherited from TTMSFNCWXCustomHTMLMemo)
OnInit Occurs after the editor has finished initializing and is ready for interaction. (inherited from TTMSFNCWXCustomHTMLMemo)
OnStyleTextUpdate Occurs when the formatting of the text at the caret or selection changes. (inherited from TTMSFNCWXCustomHTMLMemo)

Used by