Docsv3.20.2
Back to API Reference
Class

TextFormattingBehavior

sealed
Inherits:InputBehavior

Formatting policy of a field: keyboard shortcuts that run commands, and how authored markup displays, pastes and types. Default shortcuts: bold (B), italic (I), underline (U), clear formatting (\). The same TextCommand types run from the context menu (Commands) and from toolbar controls (TextCommandButton).

public MarkupVisibility MarkupVisibility{ get; set }

How authored markup characters are exposed while editing.

public bool RichPaste{ get; set }

Whether structured clipboard formatting is accepted on paste.

public PlainTextPastePolicy PlainTextPaste{ get; set }

How plain clipboard text is interpreted by the markup parser.

public TypingMarkupPolicy TypingMarkup{ get; set }

Whether markup typed by the user is parsed or inserted literally.

public bool ArrowKeyEscape{ get; set }

Whether a repeated outward arrow clears retained typing formatting.

protected override void OnEnable()
protected override void OnDisable()