RunInlineDraft Class
Definition
Inline draft for text runs.
public class RunInlineDraft
Constructors
| Name | Description |
|---|---|
| RunInlineDraft | Initializes a new instance of Avalonia.Controls.Documents.Serialization.Authoring.RunInlineDraft with the given text and optional formatting. |
RunInlineDraft Constructor
Initializes a new instance of Avalonia.Controls.Documents.Serialization.Authoring.RunInlineDraft with the given text and optional formatting.
public RunInlineDraft(string text, Avalonia.Controls.Documents.TextModel.Formatting.InlineFormatting formatting, Avalonia.Controls.Documents.TextModel.Formatting.TextElementFormatting elementFormatting)
Parameters
text string
formatting Avalonia.Controls.Documents.TextModel.Formatting.InlineFormatting
elementFormatting Avalonia.Controls.Documents.TextModel.Formatting.TextElementFormatting
Methods
| Name | Description |
|---|---|
| GetFormatMetadata | Inherited from InlineDraft. |
| SetFormatMetadata | Inherited from InlineDraft. |
Properties
| Name | Description |
|---|---|
| CustomData | Extension-specific custom data. Transferred to the resulting Avalonia.Controls.Documents.Serialization.Snapshot.SnapshotNode.CustomData during document building. Inherited from InlineDraft. |
| ElementFormatting | Base-level element formatting (font, foreground, background, letter spacing). Inherited from InlineDraft. |
| FormatMetadata | Format-specific metadata for round-trip preservation (e.g. RTF underline variant). Transferred to the resulting Avalonia.Controls.Documents.Serialization.Snapshot.SnapshotNode during document building. Inherited from InlineDraft. |
| Formatting | Inline-specific formatting (text decorations, baseline alignment). Inherited from InlineDraft. |
| Inlines | Gets the mutable list of child inline drafts. Inherited from InlineDraft. |
| Kind | Gets the Avalonia.Controls.Documents.TextModel.TextDocumentNodeKind that identifies this draft's inline type. Inherited from InlineDraft. |
| Text | Gets or sets the text content of this run. |
Text Property
Gets or sets the text content of this run.
public string Text { get; set; }