SummaryBarFluent
ConsoleMonster.Widgets
The fluent methods of SummaryBar, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.
Inheritance
- object
- SummaryBarFluent
Methods
public static SummaryBar BarWidth(SummaryBar summaryBar, int value) #Sets SummaryBar.BarWidth: The bar width in cells (default 20; narrow regions shrink it).
Parameters
- summaryBar ConsoleMonster.Widgets.SummaryBar
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.SummaryBar { BarWidth = value }; Ui.SummaryBar().BarWidth(value);public static SummaryBar DoneLabel(SummaryBar summaryBar, string? value) #Sets SummaryBar.DoneLabel: The label for the count done while the total is unknown, with {0} for the count, or null (default) for "{0} done".
Parameters
- summaryBar ConsoleMonster.Widgets.SummaryBar
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.SummaryBar { DoneLabel = value }; Ui.SummaryBar().DoneLabel(value);public static SummaryBar Elapsed(SummaryBar summaryBar, TimeSpan? value) #Sets SummaryBar.Elapsed: The elapsed time to estimate from, or null (default) for the time since the first progress: on the live session's clock while the bar is drawn in a session, real time otherwise.
Parameters
- summaryBar ConsoleMonster.Widgets.SummaryBar
- The instance.
- value System.TimeSpan?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.SummaryBar { Elapsed = value }; Ui.SummaryBar().Elapsed(value);public static SummaryBar ShowElapsed(SummaryBar summaryBar, bool value = true) #Sets SummaryBar.ShowElapsed: Whether a finished run shows how long it took ("in 12s") after the counters (default true; needs SummaryBar.Elapsed or a live session's clock).
Parameters
- summaryBar ConsoleMonster.Widgets.SummaryBar
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.SummaryBar { ShowElapsed = value }; Ui.SummaryBar().ShowElapsed(value);