Skip to main content

LineBreakInlineDraft Class

Definition​

Assembly:Avalonia.Controls.Documents
Package:Avalonia.Controls.Documents

Inline draft for line breaks.

public class LineBreakInlineDraft

Inheritance: object -> InlineDraft -> LineBreakInlineDraft

Constructors​

LineBreakInlineDraft Constructor​

Initializes a new instance of Avalonia.Controls.Documents.Serialization.Authoring.LineBreakInlineDraft.

public LineBreakInlineDraft(bool preserveTextContent)

Parameters​

preserveTextContent bool

Methods​

NameDescription
GetFormatMetadataInherited from InlineDraft.
SetFormatMetadataInherited from InlineDraft.

Properties​

NameDescription
CustomDataExtension-specific custom data. Transferred to the resulting Avalonia.Controls.Documents.Serialization.Snapshot.SnapshotNode.CustomData during document building. Inherited from InlineDraft.
ElementFormattingBase-level element formatting (font, foreground, background, letter spacing). Inherited from InlineDraft.
FormatMetadataFormat-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.
FormattingInline-specific formatting (text decorations, baseline alignment). Inherited from InlineDraft.
InlinesGets the mutable list of child inline drafts. Inherited from InlineDraft.
KindGets the Avalonia.Controls.Documents.TextModel.TextDocumentNodeKind that identifies this draft's inline type. Inherited from InlineDraft.
PreserveTextContentGets or sets whether the builder should emit newline text for this line break. When true, Avalonia.Controls.Documents.Serialization.Snapshot.DocumentSnapshotBuilder inserts Environment.NewLine into the rope and assigns that length to the resulting line-break node.

PreserveTextContent Property​

Gets or sets whether the builder should emit newline text for this line break. When true, Avalonia.Controls.Documents.Serialization.Snapshot.DocumentSnapshotBuilder inserts Environment.NewLine into the rope and assigns that length to the resulting line-break node.

public bool PreserveTextContent { get; set; }