Skip to content
ConsoleMonster

API Reference

Class

PresentedValue

Namespace ConsoleMonster.Presenters
Assembly ConsoleMonster
Modifiers sealed

What a presenter produced for one value: styled text, an optional small graphic and layout hints.

Inheritance

  • Object
  • PresentedValue

Usage

Explore 20 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.

Constructors

public PresentedValue(StyledLine line, HorizontalAlignment? alignment = null) #

Creates a presented value.

Parameters

line ConsoleMonster.Text.StyledLine requiredposition: 0
The styled text.
alignment ConsoleMonster.Layout.HorizontalAlignment? = null optionalposition: 1
The preferred alignment, or null to let the column decide.

Properties

public static PresentedValue Empty { get; } #

An empty value.

public StyledLine Line { get; } #

The styled text.

public String Text { get; } #

The plain text (for measuring, middle truncation and line output).

public HorizontalAlignment? Alignment { get; } #

The preferred alignment (numbers prefer right), or null.

public ThemeToken? Tone { get; set; } #

The tone the value carries (status, booleans, tone rules), or null.

public CellVisualKind Visual { get; set; } #

The graphic kind drawn in the cell.

public Double Fraction { get; set; } #

The fraction (0-1) for CellVisualKind.Bar and CellVisualKind.Progress.

public IReadOnlyList<Double>? Series { get; set; } #

The series for CellVisualKind.Sparkline.

public Int32 VisualWidth { get; set; } #

Cells the graphic would like (the table may give it less).

public Double? Number { get; set; } #

The numeric value behind the text (for totals, data bars and tone rules), or null.

public Boolean IsEmpty { get; set; } #

Whether the value is empty (null, empty string), so record views can hide it.