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
itemsIReadOnlyList<object>- The items to include in the list.
isOrderedbool optional- Indicates whether the list is ordered (numbered) or unordered (bulleted).
Exceptions
- ArgumentNullException
- Thrown when
itemsisnull.
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
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).
