Skip to content

ControlAddIn WSB_DMTHTMLEditor

HTML Editor control add-in.

Methods

SetHtml

Sets the HTML content

Parameters

Type Name Description
Text Html The HTML content.

GetHtml

Gets the current HTML content, returned asynchronously by the HtmlRetrieved event.

SetTheme

Sets a theme.

Parameters

Type Name Description
Text Theme The theme to use.

SetFontSize

Sets the font size.

Parameters

Type Name Description
Integer FontSize The font size to use.

SetShowLineNumbers

Sets whether to show line numbers.

Parameters

Type Name Description
Boolean ShowLineNumbers Whether to show line numbers.

SetWrapMode

Sets whether to enable wrap-mode.

Parameters

Type Name Description
Boolean WrapMode Whether to enable wrap mode.

SetChangeDebounceMilliseconds

Sets change debounce in milliseconds.

Parameters

Type Name Description
Integer Milliseconds The number of milliseconds.

Focus

Sets focus on the HTML editor.

Undo

Undos the last change inside the editor.

Redo

Redos the last change inside the editor.

Resize

Resizes the editor.

SetHeight

Sets the height of the editor.

Parameters

Type Name Description
Integer HeightInPixels The desired editor height in pixels.

FormatDocument

Formats/beautifies the HTML contents.

SetReadOnly

Sets whether the editor is read-only.

Parameters

Type Name Description
Boolean ReadOnly Whether the editor should be read-only.