MarkupWriter.WriteList Method

Namespace
Kampute.DocToolkit.IO.Writers
Assembly
  • Kampute.DocToolkit.dll
MarkupWriter.WriteList(IReadOnlyList<object>, bool)Writes a list in the format of the target document using the specified items.
MarkupWriter.WriteList(int, Action<MarkupWriter, int>, bool)Writes a list in the format of the target document using an optional delegate to write the list items.

MarkupWriter.WriteList(IReadOnlyList<object>, bool)

Writes a list in the format of the target document using the specified items.
public void WriteList(IReadOnlyList<object> items, bool isOrdered = false)

Parameters

items IReadOnlyList<object>
The items to include in the list.
isOrdered bool optional
Indicates whether the list is ordered (numbered) or unordered (bulleted).

Exceptions

ArgumentNullException
Thrown when items is null.

MarkupWriter.WriteList(int, Action<MarkupWriter, int>, bool)

Writes a list in the format of the target document using an optional delegate to write the list items.
public abstract 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).