LineBreakInlineDraft Class
Definition
Inline draft for line breaks.
public class LineBreakInlineDraft
Constructors
| Name | Description |
|---|---|
| LineBreakInlineDraft | Initializes a new instance of Avalonia.Controls.Documents.Serialization.Authoring.LineBreakInlineDraft. |
LineBreakInlineDraft Constructor
Initializes a new instance of Avalonia.Controls.Documents.Serialization.Authoring.LineBreakInlineDraft.
public LineBreakInlineDraft(bool preserveTextContent)
Parameters
preserveTextContent bool
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. |
| PreserveTextContent | Has no effect. Avalonia.Controls.Documents.Serialization.Snapshot.DocumentSnapshotBuilder gives every line break a single line feed in the text, since a break without a character cannot be laid out or addressed. Kept so existing callers still compile. |
PreserveTextContent Property
Has no effect. Avalonia.Controls.Documents.Serialization.Snapshot.DocumentSnapshotBuilder gives every line break a single line feed in the text, since a break without a character cannot be laid out or addressed. Kept so existing callers still compile.
public bool PreserveTextContent { get; set; }