MarkupWriter.WriteTable Method

Namespace
Kampute.DocToolkit.IO.Writers
Assembly
  • Kampute.DocToolkit.dll
MarkupWriter.WriteTable(IReadOnlyList<string>, IReadOnlyList<IReadOnlyList<object>>)Writes a table in the format of the target document using the specified header and row columns.
MarkupWriter.WriteTable(IReadOnlyList<string>, int, Action<MarkupWriter, int, int>)Writes a table in the format of the target document using an optional delegate to write the content of each cell.

MarkupWriter.WriteTable(IReadOnlyList<string>, IReadOnlyList<IReadOnlyList<object>>)

Writes a table in the format of the target document using the specified header and row columns.
public void WriteTable(IReadOnlyList<string> columns, IReadOnlyList<IReadOnlyList<object>> rows)

Parameters

columns IReadOnlyList<string>
The column headers of the table.
rows IReadOnlyList<IReadOnlyList<object>>
The rows of the table.

Exceptions

ArgumentNullException
Thrown when columns or rows is null.

MarkupWriter.WriteTable(IReadOnlyList<string>, int, Action<MarkupWriter, int, int>)

Writes a table in the format of the target document using an optional delegate to write the content of each cell.
public abstract 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.