Back to API Reference
Class
ClearFormattingCommand
Inherits:TextCommand
Strips every style from the selection; at a caret, the next typed text is plain. Applies while the field is editable.
public override bool IsApplicable(in TextCommandContext context)Whether the command applies to the field's current state. A menu hides or disables a command that does not apply, and a command runs only while it applies.
public override void Execute(in TextCommandContext context)Runs the command against the field's current state, to which it applies (IsApplicable).
