Docsv3.20.2
Back to API Reference
Class

ToggleStyleCommand

Inherits:TextCommand

Toggles one of the field's own styles on the selection, or as the typing style at a caret, in that style's markup syntax — bold unless another style is chosen. Applies while the field is editable and carries a style the source can toggle; its default title is the style's own label.

public IFormatStyleSource Style{ get; set }

Style the command toggles, resolved among the styles the field carries; unassigned never applies.

protected string DefaultTitle{ get }
[ctor]public ToggleStyleCommand()

Creates the command toggling the field's bold style.

[ctor]public ToggleStyleCommand()

Creates a command titled title that toggles the style style resolves.

public override bool IsApplicable()
public override bool IsActive()
public override void Execute()
public override bool Matches()