MarkdownListItem
Namespace: TagBites.Text.Markdown
Assembly: TagBites.Text.Markdown.dll
Product: TagBites.Text.Markdown v. 2.2.0
A single item of a list, which also holds block elements of its own.
public class MarkdownListItem : TagBites.Text.Markdown.MarkdownContentElementInheritance: object → MarkdownElement → MarkdownContentElement → MarkdownListItem
Constructors
Section titled “Constructors”MarkdownListItem(MarkdownText)
Section titled “MarkdownListItem(MarkdownText)”A single item of a list, which also holds block elements of its own.
public MarkdownListItem(MarkdownText text)Parameters
Section titled “Parameters”textMarkdownText
Properties
Section titled “Properties”IsChecked
Section titled “IsChecked”Gets or sets the state of the check box, or null when the item carries none.
public bool? IsChecked { get; set; }Property Value
Section titled “Property Value”bool?
Remarks
Section titled “Remarks”The check box comes from the GitHub Flavored Markdown task list extension, which puts it on the item rather than on the list, so one list holds items with and without it. Plain text output writes ☑ or ☐, because the state is part of the meaning.
Gets or sets the text of the item, written on the line that carries the marker.
public MarkdownText Text { get; set; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”AddCheckChildItem(bool, MarkdownText)
Section titled “AddCheckChildItem(bool, MarkdownText)”Adds a nested item with a check box and returns it.
public MarkdownListItem AddCheckChildItem(bool isChecked, MarkdownText text)Parameters
Section titled “Parameters”isCheckedbooltextMarkdownText
Returns
Section titled “Returns”AddChildItem(MarkdownText)
Section titled “AddChildItem(MarkdownText)”Adds a nested item and returns it.
public MarkdownListItem AddChildItem(MarkdownText text)Parameters
Section titled “Parameters”textMarkdownText
Returns
Section titled “Returns”AddChildItem<T>(T)
Section titled “AddChildItem<T>(T)”Adds a nested item that is already built and returns it.
public T AddChildItem(T item)Parameters
Section titled “Parameters”itemT
Returns
Section titled “Returns”T
Resolve(MarkdownRenderer)
Section titled “Resolve(MarkdownRenderer)”protected internal virtual void Resolve(MarkdownRenderer renderer)Parameters
Section titled “Parameters”rendererMarkdownRenderer