Skip to content

Table.Cell Class

A basic cell used in the Table control

C#
public sealed class Table.Cell : IEquatable<Table.Cell>

Inheritance object

Implements IEquatable<Table.Cell>

The row this cell is part of

C#
public int Row { get; }

The column this cell is part of

C#
public int Column { get; }

The height of the row this cell is part of

C#
public int Height { get; }

The width of the column this cell is part of

C#
public int Width { get; }

The foreground color used by the cell

C#
public Color Foreground { get; set; }

The background color used by the cell

C#
public Color Background { get; set; }

The text shown within the cell, empty string when no value.

C#
public string StringValue { get; }

The value of the cell, .ToString() method is shown as the text result within the cell.

C#
public object? Value { get; set; }

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)

C#
public bool IsVisible { get; set; }

The setting options used by the cell to define its layout

C#
public Table.Cell.Options Settings { get; }

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.

C#
public static Table.Cell InternalCreate(int row, int col, Table table, object value, bool addToTableIfModified = true)

row int

col int

table Table

value object

addToTableIfModified bool

Table.Cell

C#
public bool Equals(Table.Cell? cell)

cell Table.Cell

bool

C#
public override bool Equals(object? obj)

obj object

bool

C#
public override int GetHashCode()

int

Copies the appearance of the cell passed to this method, onto the this cell.

C#
public void CopyAppearanceFrom(Table.Cell cell)

cell Table.Cell