TableExtensions Class
Definition
Section titled “Definition”Extensions used for the Table
public static class TableExtensionsInheritance object
Methods
Section titled “Methods”Range(TableCells, int, int, int, int)
Section titled “Range(TableCells, int, int, int, int)”Returns a range of cells that fits the given parameter values.
public static IEnumerable<Table.Cell> Range(this Table.TableCells cells, int startRow, int startCol, int endRow, int endCol)Parameters
Section titled “Parameters”cells Table.TableCells
startRow int
startCol int
endRow int
endCol int
Returns
Section titled “Returns”ForEach(IEnumerable<Cell>, Action<Cell>)
Section titled “ForEach(IEnumerable<Cell>, Action<Cell>)”Executes an action on each cell.
public static void ForEach(this IEnumerable<Table.Cell> range, Action<Table.Cell> action)Parameters
Section titled “Parameters”range IEnumerable<Table.Cell>
action Action<Table.Cell>
SetLayout(Cell, Color?, Color?, Options?)
Section titled “SetLayout(Cell, Color?, Color?, Options?)”Sets the layout for the cell.
public static void SetLayout(this Table.Cell cell, Color? foreground = null, Color? background = null, Table.Cell.Options? settings = null)Parameters
Section titled “Parameters”cell Table.Cell
foreground System.NullableSadRogue.Primitives.Color
background System.NullableSadRogue.Primitives.Color
settings Table.Cell.Options
Resize(Cell, int?, int?)
Section titled “Resize(Cell, int?, int?)”Resizes the entire column and row to the specified sizes. If no sizes are specified for both row and column, the cell will be reset to the default size.
public static void Resize(this Table.Cell cell, int? rowSize = null, int? columnSize = null)Parameters
Section titled “Parameters”cell Table.Cell
rowSize int?
columnSize int?
Select(Cell)
Section titled “Select(Cell)”Sets the cell as the selected cell.
public static void Select(this Table.Cell cell)Parameters
Section titled “Parameters”cell Table.Cell
Deselect(Cell)
Section titled “Deselect(Cell)”Incase this cell is the selected cell, it will unselect it.
public static void Deselect(this Table.Cell cell)Parameters
Section titled “Parameters”cell Table.Cell
Column(TableCells, params int[])
Section titled “Column(TableCells, params int[])”Get the layout for the given columns.
public static Table.TableCells.Layout.RangeEnumerable Column(this Table.TableCells cells, params int[] columns)Parameters
Section titled “Parameters”cells Table.TableCells
columns int[]
Returns
Section titled “Returns”Table.TableCells.Layout.RangeEnumerable
Row(TableCells, params int[])
Section titled “Row(TableCells, params int[])”Get the layout for the given rows.
public static Table.TableCells.Layout.RangeEnumerable Row(this Table.TableCells cells, params int[] rows)Parameters
Section titled “Parameters”cells Table.TableCells
rows int[]
Returns
Section titled “Returns”Table.TableCells.Layout.RangeEnumerable
Remove(Cell)
Section titled “Remove(Cell)”Removes the cell from its table.
public static void Remove(this Table.Cell cell)Parameters
Section titled “Parameters”cell Table.Cell