TrganTable
Namespace: TrganReport.Table
Creates a new table with defined number of columns for storing execution data.
public class TrganTable
Inheritance Object → TrganTable
Constructors
TrganTable(Int32)
Creates a new table with defined number of columns for storing execution data.
public TrganTable(int maxColumn)
Parameters
maxColumn
Int32
Maximum number of columns to be filled
Methods
AddColumn(String)
Adds a column to the table.
public void AddColumn(string columnName)
Parameters
columnName
String
Name of the column to add.
Exceptions
InvalidOperationException
Thrown if the column limit is reached.
AddEntry()
Creates a new row entry in the table.
public TrganDynamicRow AddEntry()
Returns
TrganDynamicRow
A row instance to set column values.
GetTable()
Returns the finalized table as a list of rows. Each row is a dictionary of column name and value.
public IReadOnlyList<Dictionary<string, string>> GetTable()
Returns
IReadOnlyList<Dictionary<String, String>>