Skip to main content

PageNumberFieldInlineDraft Class

Definition​

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

Inline draft for a page-number field. The builder inserts a single object replacement character for it: the number the field shows depends on the page it lands on, so it is resolved at render time rather than stored.

public class PageNumberFieldInlineDraft

Inheritance: object -> InlineDraft -> PageNumberFieldInlineDraft

Constructors​

PageNumberFieldInlineDraft Constructor​

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

public PageNumberFieldInlineDraft(Avalonia.Controls.Documents.PageNumberFieldKind fieldKind)

Parameters​

fieldKind Avalonia.Controls.Documents.PageNumberFieldKind

What the field resolves to.

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.
FieldKindGets or sets what the field resolves to.
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.

FieldKind Property​

Gets or sets what the field resolves to.

public Avalonia.Controls.Documents.PageNumberFieldKind FieldKind { get; set; }