API Reference
PresentedValue
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.
Returned or exposed by 20
- Method AutoPresenter.Present
- Method BooleanPresenter.Present
- Method BytesPresenter.Present
- Method CellPresenters.Present
- Method DataBarPresenter.Present
- Method DatePresenter.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
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
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? Tone { 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 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.