MarkdownHeader
Namespace: Markdown
Markdown header.
public class MarkdownHeader : MarkdownTextElement, IMarkdownBlockElement
Inheritance Object → MarkdownTextElement → MarkdownHeader
Implements IMarkdownBlockElement
Properties
Level
Gets or sets the header level.
public int Level { get; set; }
Property Value
Int32
The header level.
Text
Gets or sets the text.
public string Text { get; set; }
Property Value
String
The text or a string that represents the markdown inline element.
Constructors
MarkdownHeader(String, Int32)
Initializes a new instance of the MarkdownHeader class.
public MarkdownHeader(string header, int level)
Parameters
header
String
The header text.
level
Int32
The header level.
MarkdownHeader(MarkdownInlineElement, Int32)
Initializes a new instance of the MarkdownHeader class.
public MarkdownHeader(MarkdownInlineElement inlineElement, int level)
Parameters
inlineElement
MarkdownInlineElement
The header text as markdown inline element.
level
Int32
The header level.
Methods
ToString()
Returns a string that represents the current markdown header.
public string ToString()
Returns
String
A string that represents the current markdown header.