Skip to main content

SuperscriptAction Class

Definition

Assembly:Avalonia.Controls.RichTextEditor
Package:Avalonia.Controls.RichTextEditor

Action that toggles superscript formatting on the current selection. Sets Avalonia.Controls.Documents.RichInline.BaselineAlignmentProperty to Avalonia.Media.BaselineAlignment.Superscript; font size scaling is applied at render time.

public class SuperscriptAction

Inheritance: FormattingToggleAction<BaselineAlignment> -> SuperscriptAction

Remarks

Superscript and subscript are mutually exclusive: both toggle the single Avalonia.Controls.Documents.RichInline.BaselineAlignmentProperty, so enabling one replaces the other automatically (there is only one model/springload key). All toggle, springload, and toolbar-state behaviour — including lighting up at a collapsed caret parked inside an existing superscript span — is inherited from Avalonia.Controls.Documents.Primitives.Actions.FormattingToggleAction<T>, the same path as Bold/Italic/Underline.

Constructors

NameDescription
SuperscriptActionNo summary available.

SuperscriptAction Constructor

public SuperscriptAction()

Properties

NameDescription
DisplayNameNo summary available.
GestureNo summary available.
IdNo summary available.

DisplayName Property

public string DisplayName { get; set; }

Gesture Property

public Avalonia.Input.KeyGesture Gesture { get; set; }

Id Property

public string Id { get; set; }