LinkInline Class
- Inheritance
ContainerInlineLinkInline
Nested types
| Name | Description |
|---|---|
| LinkInline.GetUrlDelegate | A delegate to use if it is setup on this instance to allow late binding of a Url. |
Constructors
| Name | Description |
|---|---|
| LinkInline() | Initializes a new instance of the LinkInline class. |
| LinkInline(string, string) | Initializes a new instance of the LinkInline class. |
LinkInline overloads
LinkInline()
LinkInline.csInitializes a new instance of the LinkInline class.
public LinkInline()LinkInline(string, string)
LinkInline.csInitializes a new instance of the LinkInline class.
Properties
| Name | Description |
|---|---|
| GetDynamicUrl | Gets or sets the GetDynamicUrl delegate. If this property is set, it is used instead of LinkInline.Url to get the Url from this instance. |
| IsAutoLink | Gets or sets a boolean indicating whether the inline link was parsed using markdown syntax or was automatic recognized. |
| IsImage | Gets or sets a value indicating whether this instance is an image link. |
| IsShortcut | Gets or sets a boolean indicating if this link is a shortcut link to a LinkReferenceDefinition |
| Label | Gets or sets the label. |
| LabelWithTrivia | Gets or sets the LinkInline.Label with trivia. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty. |
| LinkRefDefLabel | Gets or sets the label as matched against the LinkReferenceDefinition. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled. |
| LinkRefDefLabelWithTrivia | Gets or sets the LinkInline.LinkRefDefLabel with trivia as matched against the LinkReferenceDefinition |
| LocalLabel | Gets or sets the type of label parsed Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise LocalLabel.None. |
| Reference | Gets or sets the reference this link is attached to. May be null. |
| Title | Gets or sets the title. |
| TitleEnclosingCharacter | Gets or sets the character used to enclose the LinkInline.Title. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled. |
| TriviaAfterTitle | Gets or sets the trivia after the LinkInline.Title. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty. |
| TriviaAfterUrl | Any trivia after the LinkInline.Url. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty. |
| TriviaBeforeUrl | Gets or sets the trivia before the LinkInline.Url. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty. |
| UnescapedTitle | Gets or sets the LinkInline.Title exactly as parsed from the source document including unescaped characters Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty. |
| UnescapedUrl | The LinkInline.Url but with trivia and unescaped characters Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty. |
| Url | Gets or sets the URL. |
| UrlHasPointyBrackets | True if the LinkInline.Url in the source document is enclosed in pointy brackets. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise false. |
GetDynamicUrl
LinkInline.csGets or sets the GetDynamicUrl delegate. If this property is set, it is used instead of LinkInline.Url to get the Url from this instance.
public LinkInline.GetUrlDelegate? GetDynamicUrl { get; set; }Property value
IsAutoLink
LinkInline.csIsImage
LinkInline.csIsShortcut
LinkInline.csGets or sets a boolean indicating if this link is a shortcut link to a LinkReferenceDefinition
public bool IsShortcut { get; set; }Property value
Label
LinkInline.csLabelWithTrivia
LinkInline.csGets or sets the LinkInline.Label with trivia. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty.
public StringSlice LabelWithTrivia { get; set; }Property value
LinkRefDefLabel
LinkInline.csGets or sets the label as matched against the LinkReferenceDefinition. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled.
public string? LinkRefDefLabel { get; set; }Property value
LinkRefDefLabelWithTrivia
LinkInline.csGets or sets the LinkInline.LinkRefDefLabel with trivia as matched against the LinkReferenceDefinition
public StringSlice LinkRefDefLabelWithTrivia { get; set; }Property value
LocalLabel
LinkInline.csGets or sets the type of label parsed Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise LocalLabel.None.
public LocalLabel LocalLabel { get; set; }Property value
Reference
LinkInline.csGets or sets the reference this link is attached to. May be null.
public LinkReferenceDefinition? Reference { get; set; }Property value
Title
LinkInline.csTitleEnclosingCharacter
LinkInline.csGets or sets the character used to enclose the LinkInline.Title. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled.
public char TitleEnclosingCharacter { get; set; }Property value
TriviaAfterTitle
LinkInline.csGets or sets the trivia after the LinkInline.Title. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty.
public StringSlice TriviaAfterTitle { get; set; }Property value
TriviaAfterUrl
LinkInline.csAny trivia after the LinkInline.Url. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty.
public StringSlice TriviaAfterUrl { get; set; }Property value
TriviaBeforeUrl
LinkInline.csGets or sets the trivia before the LinkInline.Url. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty.
public StringSlice TriviaBeforeUrl { get; set; }Property value
UnescapedTitle
LinkInline.csGets or sets the LinkInline.Title exactly as parsed from the source document including unescaped characters Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty.
public StringSlice UnescapedTitle { get; set; }Property value
UnescapedUrl
LinkInline.csThe LinkInline.Url but with trivia and unescaped characters Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty.
public StringSlice UnescapedUrl { get; set; }Property value
UrlHasPointyBrackets
LinkInline.csTrue if the LinkInline.Url in the source document is enclosed in pointy brackets. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise false.
public bool UrlHasPointyBrackets { get; set; }Property value
Fields
| Name | Description |
|---|---|
| LabelSpan | The label span |
| TitleSpan | The title source span. |
| UrlSpan | The URL source span. |
LabelSpan
The label span
public SourceSpan LabelSpanTitleSpan
The title source span.
public SourceSpan TitleSpanUrlSpan
The URL source span.
public SourceSpan UrlSpan