HtmlWriter.WriteTable Method
- Namespace
- Kampute.DocToolkit.IO.Writers
- Assembly
- Kampute.DocToolkit.dll
Definition
Writes a table using the provided delegate to write the content of each cell.
public override void WriteTable(IReadOnlyList<string> columns, int rowCount, Action<MarkupWriter, int, int> cellContentHandler)Parameters
columnsIReadOnlyList<string>- The column headers of the table.
rowCountint- The number of rows in the table.
cellContentHandlerAction<MarkupWriter, int, int>- The action to write the content of each cell.
Exceptions
- ArgumentNullException
- Thrown when
columnsorcellContentHandlerisnull. - ArgumentOutOfRangeException
- Thrown when
rowCountis negative.
