Formatter Class

Definition

Manipulates Selected Text into an applied format according to default buttons.

public abstract class Formatter
type Formatter = class
Public MustInherit Class Formatter
Inheritance
Formatter
Derived

Constructors

Formatter()
Formatter(TextToolbar)

Initializes a new instance of the Formatter class.

Fields

Return

Shortcut to Carriage Return

Properties

ButtonActions

Gets or sets a map of the Actions taken when a button is pressed. Required for Common Button actions (Unless you override both Activation and ShiftActivation)

DefaultButtons

Gets the default list of buttons

Model

Gets the source Toolbar

NewLineChars

Gets the Characters used to indicate a New Line

Selected

Gets the current Editor Selection

Text

Gets the formatted version of the Editor's Text

Methods

EnsureAtNewLine()

Determines the Position of the Selector, if not at a New Line, it will move the Selector to a new line.

EnsureAtStartOfCurrentLine()

Decrements the selected position until it is at the start of the current line.

GetLastLine()

Gets the last line (Skips last Carriage Return)

GetLine(Int32)

Gets the line from the index provided (Skips last Carriage Return)

GetLines()

Gets an array of the Lines of Text in the Editor.

Model_EditorChanged(Object, EditorChangedArgs)

Called when text editor has changed

OnSelectionChanged()

Called after the Selected Text changes.

SetModel(TextToolbar)

Sets the TextToolbar where the Formatter is used

UnsetModel(TextToolbar)

This method is called to unset event handlers that might have been registers by SetModel(TextToolbar)

Applies to