SubscriptAction Class
Definition
Action that toggles subscript formatting on the current selection. Sets Avalonia.Controls.Documents.RichInline.BaselineAlignmentProperty to Avalonia.Media.BaselineAlignment.Subscript; font size scaling is applied at render time.
public class SubscriptAction
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 subscript span — is inherited from Avalonia.Controls.Documents.Primitives.Actions.FormattingToggleAction<T>, the same path as Bold/Italic/Underline.
Constructors
| Name | Description |
|---|---|
| SubscriptAction | No summary available. |
SubscriptAction Constructor
public SubscriptAction()
Properties
| Name | Description |
|---|---|
| DisplayName | No summary available. |
| Gesture | No summary available. |
| Id | No 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; }