MarkdownLinkReferenceDefinitionSyntax Class
A link reference definition: [label]: destination "title".
public sealed class MarkdownLinkReferenceDefinitionSyntax : MarkdownBlockSyntax- Inheritance
MarkdownBlockSyntaxMarkdownLinkReferenceDefinitionSyntax
Properties
| Name | Description |
|---|---|
| Destination | Gets the destination, without its angle brackets, escapes and entities. |
| DestinationToken | Gets the token of the destination. |
| Label | Gets the label, as it is written: the text between the brackets, with its escapes. |
| Title | Gets the title, without its quotes, escapes and entities, or null when there is none. |
Destination
MarkdownLinkReferenceDefinitionSyntax.csDestinationToken
MarkdownLinkReferenceDefinitionSyntax.csMethods
| Name | Description |
|---|---|
| Accept(MarkdownSyntaxVisitor) | |
| Accept<TResult>(MarkdownSyntaxVisitor<TResult>) | |
| GetPlainText() | |
| WithDestination(string) | Returns this definition with the destination destination, or itself when it has this destination. |
| WithTitle(string?) | Returns this definition with the title title, or itself when it has this title. |
Accept overloads
Accept(MarkdownSyntaxVisitor)
MarkdownLinkReferenceDefinitionSyntax.cspublic override void Accept(MarkdownSyntaxVisitor visitor)Parameters
visitorMarkdownSyntaxVisitor
No documentation is available.
Accept<TResult>(MarkdownSyntaxVisitor<TResult>)
MarkdownLinkReferenceDefinitionSyntax.cspublic override TResult? Accept<TResult>(MarkdownSyntaxVisitor<TResult> visitor)No documentation is available.
GetPlainText()
MarkdownLinkReferenceDefinitionSyntax.csWithDestination(string)
MarkdownLinkReferenceDefinitionSyntax.csReturns this definition with the destination destination, or itself when it has this destination.
public MarkdownLinkReferenceDefinitionSyntax WithDestination(string destination)Parameters
destinationstring- The destination, which is escaped: it is the
MarkdownLinkReferenceDefinitionSyntax.Destinationof the definition.
Returns
MarkdownLinkReferenceDefinitionSyntax
Exceptions
ArgumentNullExceptiondestinationisnull.
Remarks
The definition is in no tree: replace this one with it, with SyntaxNodeExtensions.ReplaceNode.
WithTitle(string?)
MarkdownLinkReferenceDefinitionSyntax.csReturns this definition with the title title, or itself when it has this title.
public MarkdownLinkReferenceDefinitionSyntax WithTitle(string? title)Parameters
titlestring?- The title, which is escaped: it is the
MarkdownLinkReferenceDefinitionSyntax.Titleof the definition.nullremoves the title.
Returns
MarkdownLinkReferenceDefinitionSyntax
Remarks
The definition is in no tree: replace this one with it, with SyntaxNodeExtensions.ReplaceNode.