RichTextFormatter Class

Definition

Rudimentary showcase of RichText and Toggleable Toolbar Buttons.

public class RichTextFormatter : Microsoft.Toolkit.Uwp.UI.Controls.TextToolbarFormats.Formatter
type RichTextFormatter = class
    inherit Formatter
Public Class RichTextFormatter
Inherits Formatter
Inheritance
RichTextFormatter

Constructors

RichTextFormatter()
RichTextFormatter(TextToolbar)

Initializes a new instance of the RichTextFormatter class.

Fields

Return

Shortcut to Carriage Return

(Inherited from Formatter)

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)

(Inherited from Formatter)
DefaultButtons

Gets the default list of buttons

Model

Gets the source Toolbar

(Inherited from Formatter)
NewLineChars

Gets the Characters used to indicate a New Line

Selected

Gets the current Editor Selection

(Inherited from Formatter)
SelectionFormat

Gets or sets format used for formatting selection in editor

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.

(Inherited from Formatter)
EnsureAtStartOfCurrentLine()

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

(Inherited from Formatter)
GetLastLine()

Gets the last line (Skips last Carriage Return)

(Inherited from Formatter)
GetLine(Int32)

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

(Inherited from Formatter)
GetLines()

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

(Inherited from Formatter)
Model_EditorChanged(Object, EditorChangedArgs)

Called when text editor has changed

(Inherited from Formatter)
OnSelectionChanged()

Called after the Selected Text changes.

SetModel(TextToolbar)

Sets the TextToolbar where the Formatter is used

SetModel(TextToolbar)

Sets the TextToolbar where the Formatter is used

(Inherited from Formatter)
UnsetModel(TextToolbar)

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

(Inherited from Formatter)

Applies to