MarkdownList
Namespace: Markdown
Markdown list.
public class MarkdownList : IMarkdownListItem, IMarkdownBlockElement
Inheritance Object → MarkdownList
Implements IMarkdownListItem, IMarkdownBlockElement
Properties
Char
Gets or sets the bullet point character.
public char Char { get; set; }
Property Value
Char
The bullet point character.
ListItems
Gets the list items.
public List<IMarkdownListItem> ListItems { get; }
Property Value
List<IMarkdownListItem>
List items.
Constructors
MarkdownList()
Initializes a new instance of the MarkdownList class.
public MarkdownList()
MarkdownList(Char)
Initializes a new instance of the MarkdownList class.
public MarkdownList(char char)
Parameters
char
Char
The bullet point character.
MarkdownList(IMarkdownListItem[])
Initializes a new instance of the MarkdownList class.
public MarkdownList(IMarkdownListItem[] listItems)
Parameters
listItems
IMarkdownListItem[]
The list items.
MarkdownList(IEnumerable<IMarkdownListItem>)
Initializes a new instance of the MarkdownList class.
public MarkdownList(IEnumerable<IMarkdownListItem> listItems)
Parameters
listItems
IEnumerable<IMarkdownListItem>
The list items.
MarkdownList(String[])
Initializes a new instance of the MarkdownList class.
public MarkdownList(String[] listItems)
Parameters
listItems
String[]
The list items.
MarkdownList(Char, IMarkdownListItem[])
Initializes a new instance of the MarkdownList class.
public MarkdownList(char char, IMarkdownListItem[] listItems)
Parameters
char
Char
The bullet point character.
listItems
IMarkdownListItem[]
The list items.
MarkdownList(Char, IEnumerable<IMarkdownListItem>)
Initializes a new instance of the MarkdownList class.
public MarkdownList(char char, IEnumerable<IMarkdownListItem> listItems)
Parameters
char
Char
The bullet point character.
listItems
IEnumerable<IMarkdownListItem>
The list items.
MarkdownList(Char, String[])
Initializes a new instance of the MarkdownList class.
public MarkdownList(char char, String[] listItems)
Parameters
char
Char
The bullet point character.
listItems
String[]
The list items.
Methods
AddItem(String)
Creates an item with the specified string value and adds this at the end of the items list.
public void AddItem(string item)
Parameters
item
String
The item as string.
AddItem(MarkdownInlineElement)
Creates an item with the specified markdown inline element and adds this at the end of the items list.
public void AddItem(MarkdownInlineElement item)
Parameters
item
MarkdownInlineElement
The item as markdown inline element.
ToString()
Returns a string that represents the current markdown list.
public string ToString()
Returns
String
A string that represents the current markdown list.
PrintBulletPoint(Int32)
Prints the bullet point.
protected string PrintBulletPoint(int index)
Parameters
index
Int32
The index of the bullet point.
Returns
String
The string represent the bullet point.