Skip to content
ConsoleMonster
Class

StackedBarFluent

ConsoleMonster.Widgets

Namespace
ConsoleMonster.Widgets
Assembly
ConsoleMonster
Modifiers
static

The fluent methods of StackedBar, 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
  • StackedBarFluent

Methods

public static StackedBar ColorPassing(StackedBar stackedBar, bool value = true) #

Sets StackedBar.ColorPassing: Whether a passing share keeps the pass colour (default false: it is drawn neutral so the problem shares stand out). Turn it on where passing items are coloured elsewhere on the same screen, such as in a cell map.

Parameters

stackedBar ConsoleMonster.Widgets.StackedBar required
The instance.
value bool = true optional
The value; true when omitted.

Returns

StackedBar The same instance.

Examples

// C# initializer or property                                              // C# fluent
new global::ConsoleMonster.Widgets.StackedBar { ColorPassing = value };    Ui.StackedBar().ColorPassing(value);
CountColumn 2 overloads
public static StackedBar CountColumn(StackedBar stackedBar, ColumnFormat value) #

Sets StackedBar.CountColumn: Layout of the legend count column (default right-aligned; reserves the digits of the overall total).

Parameters

stackedBar ConsoleMonster.Widgets.StackedBar required
The instance.
value ConsoleMonster.Layout.ColumnFormat required
The value.

Returns

StackedBar The same instance.

Examples

// C# initializer or property                                             // C# fluent
new global::ConsoleMonster.Widgets.StackedBar { CountColumn = value };    Ui.StackedBar().CountColumn(value);
public static StackedBar CountColumn(StackedBar stackedBar, Action<ColumnFormat> configure) #

Configures StackedBar.CountColumn in place: Layout of the legend count column (default right-aligned; reserves the digits of the overall total).

Parameters

stackedBar ConsoleMonster.Widgets.StackedBar required
The instance.
configure System.Action<ConsoleMonster.Layout.ColumnFormat> required
Configures the value.

Returns

StackedBar The same instance.
LabelColumn 2 overloads
public static StackedBar LabelColumn(StackedBar stackedBar, ColumnFormat value) #

Sets StackedBar.LabelColumn: Layout of the legend label column (default left-aligned).

Parameters

stackedBar ConsoleMonster.Widgets.StackedBar required
The instance.
value ConsoleMonster.Layout.ColumnFormat required
The value.

Returns

StackedBar The same instance.

Examples

// C# initializer or property                                             // C# fluent
new global::ConsoleMonster.Widgets.StackedBar { LabelColumn = value };    Ui.StackedBar().LabelColumn(value);
public static StackedBar LabelColumn(StackedBar stackedBar, Action<ColumnFormat> configure) #

Configures StackedBar.LabelColumn in place: Layout of the legend label column (default left-aligned).

Parameters

stackedBar ConsoleMonster.Widgets.StackedBar required
The instance.
configure System.Action<ConsoleMonster.Layout.ColumnFormat> required
Configures the value.

Returns

StackedBar The same instance.
public static StackedBar MaxLegendColumns(StackedBar stackedBar, int value) #

Sets StackedBar.MaxLegendColumns: The most legend columns per row, or 0 (default) to fit as many as the width allows. Entries fill rows left to right and every row shares one grid fitted to each column, so labels, counts and percentages line up.

Parameters

stackedBar ConsoleMonster.Widgets.StackedBar required
The instance.
value int required
The value.

Returns

StackedBar The same instance.

Examples

// C# initializer or property                                                  // C# fluent
new global::ConsoleMonster.Widgets.StackedBar { MaxLegendColumns = value };    Ui.StackedBar().MaxLegendColumns(value);
PercentColumn 2 overloads
public static StackedBar PercentColumn(StackedBar stackedBar, ColumnFormat value) #

Sets StackedBar.PercentColumn: Layout of the legend percentage column (default right-aligned, four cells).

Parameters

stackedBar ConsoleMonster.Widgets.StackedBar required
The instance.
value ConsoleMonster.Layout.ColumnFormat required
The value.

Returns

StackedBar The same instance.

Examples

// C# initializer or property                                               // C# fluent
new global::ConsoleMonster.Widgets.StackedBar { PercentColumn = value };    Ui.StackedBar().PercentColumn(value);
public static StackedBar PercentColumn(StackedBar stackedBar, Action<ColumnFormat> configure) #

Configures StackedBar.PercentColumn in place: Layout of the legend percentage column (default right-aligned, four cells).

Parameters

stackedBar ConsoleMonster.Widgets.StackedBar required
The instance.
configure System.Action<ConsoleMonster.Layout.ColumnFormat> required
Configures the value.

Returns

StackedBar The same instance.
public static StackedBar ShowLegend(StackedBar stackedBar, bool value = true) #

Sets StackedBar.ShowLegend: Whether the legend line is shown (default true).

Parameters

stackedBar ConsoleMonster.Widgets.StackedBar required
The instance.
value bool = true optional
The value; true when omitted.

Returns

StackedBar The same instance.

Examples

// C# initializer or property                                            // C# fluent
new global::ConsoleMonster.Widgets.StackedBar { ShowLegend = value };    Ui.StackedBar().ShowLegend(value);
public static StackedBar ShowSwatches(StackedBar stackedBar, bool value = true) #

Sets StackedBar.ShowSwatches: Whether each legend entry starts with a swatch of its bar fill (default true). Without swatches, an entry with a status shows only its coloured status symbol, so every row has one marker; entries without a status, and every entry when there is no colour, keep their swatch.

Parameters

stackedBar ConsoleMonster.Widgets.StackedBar required
The instance.
value bool = true optional
The value; true when omitted.

Returns

StackedBar The same instance.

Examples

// C# initializer or property                                              // C# fluent
new global::ConsoleMonster.Widgets.StackedBar { ShowSwatches = value };    Ui.StackedBar().ShowSwatches(value);
public static StackedBar ShowTotal(StackedBar stackedBar, bool value = true) #

Sets StackedBar.ShowTotal: Whether the total is written after the bar (default true). Turn it off where a title or caption already gives it.

Parameters

stackedBar ConsoleMonster.Widgets.StackedBar required
The instance.
value bool = true optional
The value; true when omitted.

Returns

StackedBar The same instance.

Examples

// C# initializer or property                                           // C# fluent
new global::ConsoleMonster.Widgets.StackedBar { ShowTotal = value };    Ui.StackedBar().ShowTotal(value);