TableExtensions

Contains extension methods for .

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)
The table to add the column to.
column (string)
The column to add.
configure (Action<TableColumn>)
Delegate that can be used to configure the added column.

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)
The table to add the column to.
columns (TableColumn[])
The columns to add.

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)
The table to add the columns to.
columns (string[])
The columns to add.

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)
The table to add the row to.

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)
The table to add the row to.
columns (IEnumerable<IRenderable>)
The row columns to add.

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)
The table to add the row to.
columns (IRenderable[])
The row columns to add.

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)
The table to add the row to.
columns (string[])
The row columns to add.

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)
The table.
caption (TableTitle)
The caption.

Returns:

The same instance so that multiple calls can be chained.

public static Table HideFooters(Table table)

Hides table footers.

Parameters:

table (Table)
The table.

Returns:

The same instance so that multiple calls can be chained.

public static Table HideHeaders(Table table)

Hides table headers.

Parameters:

table (Table)
The table.

Returns:

The same instance so that multiple calls can be chained.

public static Table HideRowSeparators(Table table)

Hides row separators.

Parameters:

table (Table)
The 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)
The table to add the row to.
index (int)
The index to insert the row at.
columns (IEnumerable<IRenderable>)
The row columns to add.

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)
The table to add the row to.
index (int)
The index to insert the row at.
columns (IRenderable[])
The row columns to add.

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)
The table to add the row to.
index (int)
The index to insert the row at.
columns (string[])
The row columns to add.

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)
The table to add the row to.
index (int)
The index to remove the row at.

Returns:

The same instance so that multiple calls can be chained.

public static Table ShowFooters(Table table)

Shows table footers.

Parameters:

table (Table)
The table.

Returns:

The same instance so that multiple calls can be chained.

public static Table ShowHeaders(Table table)

Shows table headers.

Parameters:

table (Table)
The table.

Returns:

The same instance so that multiple calls can be chained.

public static Table ShowRowSeparators(Table table)

Shows row separators.

Parameters:

table (Table)
The 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)
The table.
title (TableTitle)
The table title.

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)
The table to update.
rowIndex (int)
The index of row to update.
columnIndex (int)
The index of column to update.
cellData (IRenderable)
New cell data.

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)
The table to update.
rowIndex (int)
The index of row to update.
columnIndex (int)
The index of column to update.
cellData (string)
New cell data.

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)
The table.
width (int?)
The width.

Returns:

The same instance so that multiple calls can be chained.