TableCell
ConsoleMonster.Widgets
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 21 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 11
- Property KeyValueItem.Cell
- Property RecordItem.Cell
- Property Table.Rows
- Method TableCell.ForSeverity
- Method TableCell.ForStatus
- Method TableCell.FromValue
- Method TableCell.op_Implicit
- Method TableCell.WithTone
- Property Table<T>.Rows
- Property TreeNode.Value
- Property TreeNode.Values
Accepted by parameters 10
- Constructor GroupedStreamingTable<T1, T2>.GroupedStreamingTable
- Method RecordView.Field
- Method RecordView.FieldAt
- Method RoleTable.Row
- Method Table.Footer
- Method Table.Row
- Method Table<T>.Footer
- Method Table<T>.Row
- Extension method TreeNode.Value
- Method TreeNodeFluent.Value
Constructors
Methods
public static TableCell ForSeverity(Severity severity, string? text = null) #Creates a severity cell whose glyph is chosen before destination measurement.
Parameters
- severity ConsoleMonster.Styling.Severity
- text string? = null
Returns
TableCellpublic static TableCell ForStatus(StatusKind status, string? text = null) #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
- The status.
- text string? = null
- The text (plain), or null for the status word.
public static TableCell FromValue(object? value) #Creates a value cell: the column's presenter formats it, and totals and tone rules read it.
Parameters
- value object?
- The raw value; null and System.Reflection.Missing.Value use a muted placeholder, and an empty string stays blank.
public static TableCell op_Implicit(string markup) #Converts a string (markup) to a cell.
Parameters
- markup string
- The markup.
Returns
TableCellpublic TableCell WithTone(Tone tone) #Returns a copy with a cell tone, retaining the raw value, status and existing emphasis.
Parameters
- tone ConsoleMonster.Tone
- The theme role supplied by the caller; it is not inferred from the numeric value.
Inherited Methods
Properties
public StatusKind? Status { get; private set; } #The status, when this is a status cell.
public Severity? AssessmentSeverity { get; private set; } #The assessment severity when this cell uses the assessment scale.
public bool HasValue { get; } #Whether this is a value cell (formatted by the column's presenter).