Skip to main content

HyperlinkInlineDraft Class

Definition​

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

Inline draft for hyperlinks.

public class HyperlinkInlineDraft

Inheritance: object -> InlineDraft -> HyperlinkInlineDraft

Constructors​

NameDescription
HyperlinkInlineDraftInitializes a new instance of Avalonia.Controls.Documents.Serialization.Authoring.HyperlinkInlineDraft with the given URI and optional formatting.

HyperlinkInlineDraft Constructor​

Initializes a new instance of Avalonia.Controls.Documents.Serialization.Authoring.HyperlinkInlineDraft with the given URI and optional formatting.

public HyperlinkInlineDraft(string navigateUri, Avalonia.Controls.Documents.TextModel.Formatting.InlineFormatting formatting, Avalonia.Controls.Documents.TextModel.Formatting.TextElementFormatting elementFormatting)

Parameters​

navigateUri string

formatting Avalonia.Controls.Documents.TextModel.Formatting.InlineFormatting

elementFormatting Avalonia.Controls.Documents.TextModel.Formatting.TextElementFormatting

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.
NavigateUriGets or sets the navigation URI for this hyperlink.
TitleGets or sets the optional link title (markdown [text](url "title")). null when the source declared none.

Gets or sets the navigation URI for this hyperlink.

public string NavigateUri { get; set; }

Title Property​

Gets or sets the optional link title (markdown [text](url "title")). null when the source declared none.

public string Title { get; set; }