MarkDownFormatter Class

Definition

Formatter implementation for MarkDown

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

Constructors

MarkDownFormatter()
MarkDownFormatter(TextToolbar)

Initializes a new instance of the MarkDownFormatter 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

ListLineIterator

Gets the value of the Line Number Iterator. Use this for generating Numbered Lists.

Model

Gets the source Toolbar

(Inherited from Formatter)
NewLineChars

Gets the Characters used to indicate a New Line

ReachedEndLine

Gets a value indicating whether gets whether it is the last line of the list.

Selected

Gets the current Editor Selection

(Inherited from Formatter)
Text

Gets the formatted version of the Editor's Text

Methods

DetermineInlineWrapListReverse(Func<String>)

Determines if a reverse is requested, if the list characters are inside the Selection.

DetermineListReverse(Func<String>, Boolean)

Determines whether a List already has the formatting applied.

DetermineSimpleInlineReverse(String, String)

Determines if formatting is to be reversed, when the formatting is located inside the Selectors.

DetermineSimpleReverse(String, String)

Determines if formatting is to be reversed

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)
FormatCode(ToolbarButton)

Formats a string as code

FormatQuote(ToolbarButton)

Formats a string as quote

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.

(Inherited from Formatter)
SetList(Func<String>, ToolbarButton, Boolean)

This function will either add List Characters to lines of text, or Remove List Characters from Lines of Text, if already applied.

SetModel(TextToolbar)

Sets the TextToolbar where the Formatter is used

SetModel(TextToolbar)

Sets the TextToolbar where the Formatter is used

(Inherited from Formatter)
SetSelection(String, String, Boolean, String)

Applies formatting to Selected Text, or Removes formatting if already applied.

StyleHeader(ToolbarButton)

Invoked the flyout to style a header

UnsetModel(TextToolbar)

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

(Inherited from Formatter)

Applies to