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
columnsIReadOnlyList<string>- The column headers of the table.
rowsIReadOnlyList<IReadOnlyList<object>>- The rows of the table.
Exceptions
- ArgumentNullException
- Thrown when
columnsorrowsisnull.
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
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.
