MarkdownWriter.WriteTable Method

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

Definition

Writes a table using a delegate to write the content of each cell.
public override void WriteTable(IReadOnlyList<string> columns, int rowCount, Action<MarkupWriter, int, int> cellContentHandler)

Parameters

columns IReadOnlyList<string>
The column headers of the table.
rowCount int
The number of rows in the table.
cellContentHandler Action<MarkupWriter, int, int>
The action to write the content of each cell.

Exceptions

ArgumentNullException
Thrown when columns or cellContentHandler is null.
ArgumentOutOfRangeException
Thrown when rowCount is negative.