PresentedValue
ConsoleMonster.Presenters
What a presenter produced for one value: styled text, an optional small graphic and layout hints.
Inheritance
- object
- PresentedValue
Usage
Explore 22 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 22
- Method AutoPresenter.Present
- Method BooleanPresenter.Present
- Method BytesPresenter.Present
- Method CellPresenters.Present
- Method ChipPresenter.Present
- Method DataBarPresenter.Present
- Method DatePresenter.Present
- Method DnsNamePresenter.Present
- Method DurationPresenter.Present
- Method EmojiPresenter.Present
- Method HighlightPresenter.Present
- Method ICellPresenter.Present
- Method IdentifierPresenter.Present
- Method LinkPresenter.Present
- Method MarkupPresenter.Present
- Method NumberPresenter.Present
- Property PresentedValue.Empty
- Method ProgressPresenter.Present
- Method SparklinePresenter.Present
- Method StatusEnumPresenter.Present
- Method StatusPresenter.Present
- Method TextPresenter.Present
Constructors
public PresentedValue(StyledLine line, HorizontalAlignment? alignment = null) #Creates a presented value.
Parameters
- line ConsoleMonster.Text.StyledLine
- The styled text.
- alignment ConsoleMonster.Layout.HorizontalAlignment? = null
- The preferred alignment, or null to let the column decide.
Inherited Methods
Properties
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? Role { get; set; } #The tone the value carries (status, booleans, tone rules), or null.
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 int 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 bool IsEmpty { get; set; } #Whether the value is empty (null, empty string), so record views can hide it.