API Reference
Class
NumberPresenter
A number, right-aligned, with the culture's thousand and decimal separators and an optional unit: 12,480, 8.4 rules/s, 97.5 %. Non-numeric values are shown as text.
Inheritance
- Object
- NumberPresenter
Constructors
public NumberPresenter(String? unit = null, Int32? decimals = null) #Creates a number presenter.
Parameters
- unit System.String? = null
- A unit appended after a space (muted), or null.
- decimals System.Int32? = null
- Fixed decimals, or null for automatic: in a table column the most decimals any of its numbers needs (at most two), elsewhere up to two (none for whole numbers).
Methods
public PresentedValue Present(Object? value, PresenterContext context) #Returns:
PresentedValuePresents a value.
Parameters
- value System.Object?
- The raw value (may be null).
- context ConsoleMonster.Presenters.PresenterContext
- Culture, clock, time zone, column statistics and the render context.
Returns
The presented value.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?