Table.Cell Class
Definition
Section titled “Definition”A basic cell used in the Table control
public sealed class Table.Cell : IEquatable<Table.Cell>Inheritance object
Implements IEquatable<Table.Cell>
Properties
Section titled “Properties”The row this cell is part of
public int Row { get; }Column
Section titled “Column”The column this cell is part of
public int Column { get; }Height
Section titled “Height”The height of the row this cell is part of
public int Height { get; }The width of the column this cell is part of
public int Width { get; }Foreground
Section titled “Foreground”The foreground color used by the cell
public Color Foreground { get; set; }Background
Section titled “Background”The background color used by the cell
public Color Background { get; set; }StringValue
Section titled “StringValue”The text shown within the cell, empty string when no value.
public string StringValue { get; }The value of the cell, .ToString() method is shown as the text result within the cell.
public object? Value { get; set; }IsVisible
Section titled “IsVisible”Set to false if the cell should not be rendered within the table (default IsVisible sadconsole behaviour), If an entire row or column IsVislbe is set to false in the layout, it will skip this row/column entirely (differs from default behaviour)
public bool IsVisible { get; set; }Settings
Section titled “Settings”The setting options used by the cell to define its layout
public Table.Cell.Options Settings { get; }Methods
Section titled “Methods”InternalCreate(int, int, Table, object, bool)
Section titled “InternalCreate(int, int, Table, object, bool)”Internal use only. This is used by the table and the theme to create new cell instances.
public static Table.Cell InternalCreate(int row, int col, Table table, object value, bool addToTableIfModified = true)Parameters
Section titled “Parameters”row int
col int
table Table
value object
addToTableIfModified bool
Returns
Section titled “Returns”Equals(Cell?)
Section titled “Equals(Cell?)”public bool Equals(Table.Cell? cell)Parameters
Section titled “Parameters”cell Table.Cell
Returns
Section titled “Returns”Equals(object?)
Section titled “Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object
Returns
Section titled “Returns”GetHashCode()
Section titled “GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”CopyAppearanceFrom(Cell)
Section titled “CopyAppearanceFrom(Cell)”Copies the appearance of the cell passed to this method, onto the this cell.
public void CopyAppearanceFrom(Table.Cell cell)Parameters
Section titled “Parameters”cell Table.Cell