TextFormattingBehavior
User-driven formatting commands, each binding a style source (IFormatStyleSource) to an optional primary-modifier shortcut (Ctrl on Windows/Linux, Cmd on macOS). A command toggles its style on the selection, or as a typing style at a collapsed caret (ToggleStyle<T> semantics), in the syntax the resolved style's rule speaks. Toolbar buttons and context menus call Toggle / Toggle; button state comes from IsStyleActive<T> via CaretContextBehavior. Default commands: bold (B), italic (I), underline (U), clear formatting (\).
Nested Types
public NativeKeyCode ClearFormattingKey{ get; set }Primary-modifier shortcut that clears formatting; None disables it.
public MarkupVisibility MarkupVisibility{ get; set }How authored markup characters are exposed while editing.
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.
