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
countint- The number of items in the list.
itemContentHandlerAction<MarkupWriter, int>- The action to write the content of each list item.
isOrderedbool optional- Indicates whether the list is ordered (numbered) or unordered (bulleted).
Exceptions
- ArgumentNullException
- Thrown when
itemContentHandlerisnull. - ArgumentOutOfRangeException
- Thrown when
countis negative.
