MarkdownWriter.WriteList Method

Namespace
Kampute.DocToolkit.IO.Writers
Assembly
  • Kampute.DocToolkit.dll

Definition

Writes a list using a delegate to write the list items.
public override void WriteList(int count, Action<MarkupWriter, int> itemContentHandler, bool isOrdered = false)

Parameters

count int
The number of items in the list.
itemContentHandler Action<MarkupWriter, int>
The action to write the content of each list item.
isOrdered bool optional
Indicates whether the list is ordered (numbered) or unordered (bulleted).

Exceptions

ArgumentNullException
Thrown when itemContentHandler is null.
ArgumentOutOfRangeException
Thrown when count is negative.