Class Table.Cell
A basic cell used in the Table control
Assembly: SadConsole.Extended.dll
Syntax
public sealed class Table.Cell : IEquatable<Table.Cell>
Properties
Background
The background color used by the cell
Declaration
public Color Background { get; set; }
Property Value
Column
The column this cell is part of
Declaration
public int Column { get; }
Property Value
Foreground
The foreground color used by the cell
Declaration
public Color Foreground { get; set; }
Property Value
Height
The height of the row this cell is part of
Declaration
public int Height { get; }
Property Value
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)
Declaration
public bool IsVisible { get; set; }
Property Value
Row
The row this cell is part of
Declaration
Property Value
Settings
The setting options used by the cell to define its layout
Declaration
public Table.Cell.Options Settings { get; }
Property Value
StringValue
The text shown within the cell, empty string when no value.
Declaration
public string StringValue { get; }
Property Value
Value
The value of the cell, .ToString() method is shown as the text result within the cell.
Declaration
public object? Value { get; set; }
Property Value
Width
The width of the column this cell is part of
Declaration
public int Width { get; }
Property Value
Methods
CopyAppearanceFrom(Cell)
Copies the appearance of the cell passed to this method, onto the this cell.
Declaration
public void CopyAppearanceFrom(Table.Cell cell)
Parameters
Equals(Cell?)
Declaration
public bool Equals(Table.Cell? cell)
Parameters
Returns
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
InternalCreate(int, int, Table, object, bool)
Internal use only. This is used by the table and the theme to create new cell instances.
Declaration
public static Table.Cell InternalCreate(int row, int col, Table table, object value, bool addToTableIfModified = true)
Parameters
Returns
Operators
operator ==(Cell?, Cell?)
Declaration
public static bool operator ==(Table.Cell? a, Table.Cell? b)
Parameters
Returns
operator !=(Cell?, Cell?)
Declaration
public static bool operator !=(Table.Cell? a, Table.Cell? b)
Parameters
Returns
Implements
Extension Methods