Skip to content
ConsoleMonster
Class

ViewFact

ConsoleMonster.Widgets

Namespace
ConsoleMonster.Widgets
Assembly
ConsoleMonster
Modifiers
sealed

One fact under a view: an optional caption, the value (presented like a table cell) and an optional label.

Inheritance

  • object
  • ViewFact

Usage

Explore 7 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 1

Accepted by parameters 6

Constructors

public ViewFact(object? value, string? label = null, string? caption = null, ICellPresenter? presenter = null, ThemeToken? role = null, bool newLine = false) #

Creates a fact.

Parameters

value object? required
label string? = null optional
caption string? = null optional
presenter ConsoleMonster.Presenters.ICellPresenter? = null optional
role ConsoleMonster.Styling.ThemeToken? = null optional
newLine bool = false optional

Properties

public bool NewLine { get; } #

Starts a new line (one line per destination, for example).

public string? Caption { get; } #

Literal text before the value ("largest").

public object? Value { get; } #

The value, presented by ViewFact.Presenter or automatically.

public string? Label { get; } #

Literal text after the value ("files").

public ICellPresenter? Presenter { get; } #

The presenter, or null for automatic.

public ThemeToken? Role { get; } #

The value's colour, or null for a neutral muted fact.