Contains extension methods for Table.
Methods
public static Table AddColumn(Table table, string column, Action<TableColumn> configure = null)
Adds a column to the table.
Parameters:
table (Table)column (string)configure (Action<TableColumn>)Returns:
The same instance so that multiple calls can be chained.
public static Table AddColumns(Table table, TableColumn[] columns)
Adds multiple columns to the table.
Parameters:
table (Table)columns (TableColumn[])Returns:
The same instance so that multiple calls can be chained.
public static Table AddColumns(Table table, string[] columns)
Adds multiple columns to the table.
Parameters:
table (Table)columns (string[])Returns:
The same instance so that multiple calls can be chained.
public static Table AddEmptyRow(Table table)
Adds an empty row to the table.
Parameters:
table (Table)Returns:
The same instance so that multiple calls can be chained.
public static Table AddRow(Table table, IEnumerable<IRenderable> columns)
Adds a row to the table.
Parameters:
table (Table)columns (IEnumerable<IRenderable>)Returns:
The same instance so that multiple calls can be chained.
public static Table AddRow(Table table, IRenderable[] columns)
Adds a row to the table.
Parameters:
table (Table)columns (IRenderable[])Returns:
The same instance so that multiple calls can be chained.
public static Table AddRow(Table table, string[] columns)
Adds a row to the table.
Parameters:
table (Table)columns (string[])Returns:
The same instance so that multiple calls can be chained.
public static Table Caption(Table table, TableTitle caption)
Sets the table caption.
Parameters:
table (Table)caption (TableTitle)Returns:
The same instance so that multiple calls can be chained.
public static Table HideFooters(Table table)
Hides table footers.
Parameters:
table (Table)Returns:
The same instance so that multiple calls can be chained.
public static Table HideHeaders(Table table)
Hides table headers.
Parameters:
table (Table)Returns:
The same instance so that multiple calls can be chained.
public static Table HideRowSeparators(Table table)
Hides row separators.
Parameters:
table (Table)Returns:
The same instance so that multiple calls can be chained.
public static Table InsertRow(Table table, int index, IEnumerable<IRenderable> columns)
Inserts a row in the table at the specified index.
Parameters:
table (Table)index (int)columns (IEnumerable<IRenderable>)Returns:
The same instance so that multiple calls can be chained.
public static Table InsertRow(Table table, int index, IRenderable[] columns)
Inserts a row in the table at the specified index.
Parameters:
table (Table)index (int)columns (IRenderable[])Returns:
The same instance so that multiple calls can be chained.
public static Table InsertRow(Table table, int index, string[] columns)
Inserts a row in the table at the specified index.
Parameters:
table (Table)index (int)columns (string[])Returns:
The same instance so that multiple calls can be chained.
public static Table RemoveRow(Table table, int index)
Removes a row from the table with the specified index.
Parameters:
table (Table)index (int)Returns:
The same instance so that multiple calls can be chained.
public static Table ShowFooters(Table table)
Shows table footers.
Parameters:
table (Table)Returns:
The same instance so that multiple calls can be chained.
public static Table ShowHeaders(Table table)
Shows table headers.
Parameters:
table (Table)Returns:
The same instance so that multiple calls can be chained.
public static Table ShowRowSeparators(Table table)
Shows row separators.
Parameters:
table (Table)Returns:
The same instance so that multiple calls can be chained.
public static Table Title(Table table, TableTitle title)
Sets the table title.
Parameters:
table (Table)title (TableTitle)Returns:
The same instance so that multiple calls can be chained.
public static Table UpdateCell(Table table, int rowIndex, int columnIndex, IRenderable cellData)
Updates a tables cell.
Parameters:
table (Table)rowIndex (int)columnIndex (int)cellData (IRenderable)Returns:
The same instance so that multiple calls can be chained.
public static Table UpdateCell(Table table, int rowIndex, int columnIndex, string cellData)
Updates a tables cell.
Parameters:
table (Table)rowIndex (int)columnIndex (int)cellData (string)Returns:
The same instance so that multiple calls can be chained.
public static Table Width(Table table, int? width)
Sets the table width.
Parameters:
table (Table)width (int?)Returns:
The same instance so that multiple calls can be chained.