Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

LinkInline

OfficeIMO.Markdown

Namespace
OfficeIMO.Markdown
Assembly
OfficeIMO.Markdown
Source revision
0eef6a5756b9 with working tree changes
Implements
IMarkdownInline IRenderableMarkdownInline IPlainTextMarkdownInline IInlineContainerMarkdownInline IMarkdownInlineAuxiliarySyntaxMetadataOwner IHtmlAppendableMarkdownInline
Modifiers
sealed

Hyperlink inline.

Inheritance

Constructors

public LinkInline(string text, string url, string? title, string? linkTarget = null, string? linkRel = null) #

Creates a hyperlink inline.

Parameters

text string required
url string required
title string? required
linkTarget string? = null optional
linkRel string? = null optional

Properties

public string Text { get; } #

Link text.

public string Url { get; } #

Destination URL.

public string? Title { get; } #

Optional title shown as a tooltip in HTML.

public string? LinkTarget { get; } #

Optional HTML target attribute preserved from richer sources.

public string? LinkRel { get; } #

Optional HTML rel attribute preserved from richer sources.

public MarkdownSourceSpan? UrlSourceSpan { get; internal set; } #

Source span for the link URL token when parsed from markdown.

public MarkdownSourceSpan? TitleSourceSpan { get; internal set; } #

Source span for the optional link title token when parsed from markdown.

public MarkdownSourceSpan? HtmlTargetSourceSpan { get; internal set; } #

Source span for the optional HTML target attribute when imported from richer sources.

public MarkdownSourceSpan? HtmlRelSourceSpan { get; internal set; } #

Source span for the optional HTML rel attribute when imported from richer sources.

public InlineSequence? LabelInlines { get; } #

Optional richer inline representation of the link label when the reader parsed nested formatting. When present, renderers and converters can preserve label formatting instead of flattening to plain text.