TableExtensions Class
Contains extension methods for
Table
.
public static class TableExtensions
- Namespace
- Spectre
.Console
Methods
-
static Table AddColumn
(Table, string, Action <TableColumn> ) - Adds a column to the table.
-
static Table AddColumns
(Table, string[]) - Adds multiple columns to the table.
-
static Table AddColumns
(Table, TableColumn[]) - Adds multiple columns to the table.
-
static Table AddEmptyRow
(Table) - Adds an empty row to the table.
-
static Table AddRow
(Table, IEnumerable <IRenderable> ) - Adds a row to the table.
-
static Table AddRow
(Table, IRenderable[]) - Adds a row to the table.
-
static Table AddRow
(Table, string[]) - Adds a row to the table.
-
static Table Caption
(Table, string, Style) - Sets the table caption.
-
static Table Caption
(Table, TableTitle) - Sets the table caption.
-
static Table HideFooters
(Table) - Hides table footers.
-
static Table HideHeaders
(Table) - Hides table headers.
-
static Table HideRowSeparators
(Table) - Hides row separators.
-
static Table InsertRow
(Table, int, IEnumerable <IRenderable> ) - Inserts a row in the table at the specified index.
-
static Table InsertRow
(Table, int, IRenderable[]) - Inserts a row in the table at the specified index.
-
static Table InsertRow
(Table, int, string[]) - Inserts a row in the table at the specified index.
-
static Table RemoveRow
(Table, int) - Removes a row from the table with the specified index.
-
static Table ShowFooters
(Table) - Shows table footers.
-
static Table ShowHeaders
(Table) - Shows table headers.
-
static Table ShowRowSeparators
(Table) - Shows row separators.
-
static Table Title
(Table, string, Style) - Sets the table title.
-
static Table Title
(Table, TableTitle) - Sets the table title.
-
static Table UpdateCell
(Table, int, int, IRenderable) - Updates a tables cell.
-
static Table UpdateCell
(Table, int, int, string) - Updates a tables cell.
-
static Table Width
(Table, int?) - Sets the table width.