MarkdownSyntaxToken Class

MarkdownSyntaxToken class

Represent the Markdown Syntax Token.

public sealed class MarkdownSyntaxToken : MarkdownSyntaxNode

Properties

NameDescription
FirstChild { get; }Get the first child.
LastChild { get; }Get the last child.
NextSibling { get; }Get ghe next sibling.
Parent { get; }Get the parent node.
PreviousSibling { get; }Get the previous sibling.
Source { get; }Get the source text.
Span { get; }Get the span.
Text { get; }Get the text content of span.

Methods

NameDescription
virtual Accept(MarkdownSyntaxVisitor)Accept the visitor.
AppendChild(MarkdownSyntaxNode)Append child node.
ChildNodes()Get the child nodes collection.
GetFullText()Defines the interface for get the full text.
GetLeadingTrivia()Get the leading trivia.
GetSyntaxTree()Get the syntax tree.
GetTrailingTrivia()Get the Trailing trivia.
InsertBefore(MarkdownSyntaxNode, MarkdownSyntaxNode)Insert before node.
RemoveChild(MarkdownSyntaxNode)Remove the child.
ReplaceChild(MarkdownSyntaxNode, MarkdownSyntaxNode)Replace the child node.
override ToString()Override ToString method.
virtual WriteTo(MarkdownTextWriter)Write to MarkdownTextWriter.
WriteTo(TextWriter)Write nodes to text writer.

See Also