MarkdownListSyntax Class

A list: list items with the same kind of marker.

public sealed class MarkdownListSyntax : MarkdownBlockSyntax
Inheritance
MarkdownBlockSyntax MarkdownListSyntax

Properties

NameDescription
IsOrderedGets a value indicating whether the items are numbered.
IsTightGets a value indicating whether the list is tight: no blank line separates two of its items, or two blocks of one of its items. The paragraphs of a tight list are rendered without <p>.
ItemsGets the items of the list.
MarkerCharacterGets the character of the markers: -, + or * for a bullet list, . or ) for an ordered list.
OrderedStyleGets how the items of an ordered list are numbered, or null for a bullet list.
StartNumberGets the number of the first item of an ordered list, or null for a bullet list.

Gets a value indicating whether the items are numbered.

public bool IsOrdered { get; }

Property value

bool

Gets a value indicating whether the list is tight: no blank line separates two of its items, or two blocks of one of its items. The paragraphs of a tight list are rendered without <p>.

public bool IsTight { get; }

Property value

bool

Gets the items of the list.

public ImmutableArray<MarkdownListItemSyntax> Items { get; }

MarkerCharacter

MarkdownListSyntax.cs

Gets the character of the markers: -, + or * for a bullet list, . or ) for an ordered list.

public char MarkerCharacter { get; }

Property value

char

Gets how the items of an ordered list are numbered, or null for a bullet list.

public MarkdownOrderedListStyle? OrderedStyle { get; }

Gets the number of the first item of an ordered list, or null for a bullet list.

public int? StartNumber { get; }

Property value

int?

Remarks

The letters and the roman numbers are numbers too: c. is 3, and iv. is 4.

Methods

NameDescription
Accept(MarkdownSyntaxVisitor)
Accept<TResult>(MarkdownSyntaxVisitor<TResult>)

Accept overloads

Accept(MarkdownSyntaxVisitor)

MarkdownListSyntax.cs
public override void Accept(MarkdownSyntaxVisitor visitor)
Parameters
visitor MarkdownSyntaxVisitor

No documentation is available.

Accept<TResult>(MarkdownSyntaxVisitor<TResult>)

MarkdownListSyntax.cs
public override TResult? Accept<TResult>(MarkdownSyntaxVisitor<TResult> visitor)
Type parameters
TResult
Parameters
visitor MarkdownSyntaxVisitor<TResult>
Returns

TResult?

No documentation is available.