Skip to content
ConsoleMonster

API Reference

Class

TableCell

Namespace ConsoleMonster.Widgets
Assembly ConsoleMonster
Modifiers sealed

A table cell: either markup text (optionally with a status marker), or a raw value that the column's presenter formats (numbers, bytes, dates, statuses, data bars...). Raw values also feed totals and tone rules.

Inheritance

  • Object
  • TableCell

Usage

Explore 16 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 8

Accepted by parameters 8

Constructors

public TableCell(String markup) #

Creates a cell from markup.

Parameters

markup System.String requiredposition: 0
The markup.

Methods

public static TableCell ForStatus(StatusKind status, String? text = null) #
Returns: TableCell

Creates a status cell: the marker and the text take the status colour; this is the row's one colour signal.

Parameters

status ConsoleMonster.Styling.StatusKind requiredposition: 0
The status.
text System.String? = null optionalposition: 1
The text (plain), or null for the status word.

Returns

The cell.

public static TableCell FromValue(Object? value) #
Returns: TableCell

Creates a value cell: the column's presenter formats it, and totals and tone rules read it.

Parameters

value System.Object? requiredposition: 0
The raw value (null is an empty cell).

Returns

The cell.

public static TableCell op_Implicit(String markup) #
Returns: TableCell

Converts a string (markup) to a cell.

Parameters

markup System.String requiredposition: 0
The markup.

Properties

public String Markup { get; } #

The markup (empty for value cells).

public StatusKind? Status { get; private set; } #

The status, when this is a status cell.

public Object? Value { get; } #

The raw value of a value cell, or null.

public Boolean HasValue { get; } #

Whether this is a value cell (formatted by the column's presenter).