API Reference
Class
DataBarPresenter
A number with a data bar in the cell, scaled to DataBarPresenter.Maximum or the column maximum: ▆▆▆▆▆▆▆ 412. The number stays visible, so the cell reads the same without colour.
Inheritance
- Object
- DataBarPresenter
Constructors
public DataBarPresenter(Double? maximum = null, ICellPresenter? number = null, Int32 barWidth = 10) #Creates a data bar presenter.
Parameters
- maximum System.Double? = null
- The value of a full bar, or null for the column maximum.
- number ConsoleMonster.Presenters.ICellPresenter? = null
- How the number is formatted (default NumberPresenter).
- barWidth System.Int32 = 10
- Cells the bar would like (default 10).
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?
Properties
public Double? Maximum { get; } #The value of a full bar, or null for the column maximum.