ListBlock Class

A list (Section 5.3 CommonMark specs)

public class ListBlock : ContainerBlock
Inheritance
ContainerBlock ListBlock

Constructors

NameDescription
ListBlock(BlockParser)Initializes a new instance of the ListBlock class.

ListBlock(BlockParser)

ListBlock.cs

Initializes a new instance of the ListBlock class.

public ListBlock(BlockParser parser)

Parameters

parser BlockParser
The parser used to create this block.

Properties

NameDescription
BulletTypeGets or sets the bullet character used by this list.
DefaultOrderedStartGets or sets the default ordered start ("1" for BulletType = '1')
IsLooseGets or sets a value indicating whether this instance is loose.
IsOrderedGets or sets a value indicating whether the list is ordered.
OrderedDelimiterGets or sets the ordered delimiter character (usually `.` or `)`) found after an ordered list item.
OrderedStartGets or sets the ordered start number (valid when ListBlock.IsOrdered is true)

BulletType

ListBlock.cs

Gets or sets the bullet character used by this list.

public char BulletType { get; set; }

Property value

char

DefaultOrderedStart

ListBlock.cs

Gets or sets the default ordered start ("1" for BulletType = '1')

public string? DefaultOrderedStart { get; set; }

Property value

string?

Gets or sets a value indicating whether this instance is loose.

public bool IsLoose { get; set; }

Property value

bool

IsOrdered

ListBlock.cs

Gets or sets a value indicating whether the list is ordered.

public bool IsOrdered { get; set; }

Property value

bool

OrderedDelimiter

ListBlock.cs

Gets or sets the ordered delimiter character (usually `.` or `)`) found after an ordered list item.

public char OrderedDelimiter { get; set; }

Property value

char

OrderedStart

ListBlock.cs

Gets or sets the ordered start number (valid when ListBlock.IsOrdered is true)

public string? OrderedStart { get; set; }

Property value

string?