API Reference
StackedBarFluent
The fluent methods of StackedBar, generated from its public properties: With... sets a property and Add... adds to a collection, both returning the same instance.
Inheritance
- Object
- StackedBarFluent
Methods
public static StackedBar WithCountColumn(StackedBar stackedBar, ColumnFormat value) #StackedBarSets StackedBar.CountColumn: Layout of the legend count column (default right-aligned; reserves the digits of the overall total).
Parameters
- stackedBar ConsoleMonster.Widgets.StackedBar
- The instance.
- value ConsoleMonster.Layout.ColumnFormat
- The value.
Returns
The same instance.
public static StackedBar WithCountColumn(StackedBar stackedBar, Action<ColumnFormat> configure) #StackedBarConfigures 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
- The instance.
- configure System.Action<ConsoleMonster.Layout.ColumnFormat>
- Configures the value.
Returns
The same instance.
public static StackedBar WithLabelColumn(StackedBar stackedBar, ColumnFormat value) #StackedBarSets StackedBar.LabelColumn: Layout of the legend label column (default left-aligned).
Parameters
- stackedBar ConsoleMonster.Widgets.StackedBar
- The instance.
- value ConsoleMonster.Layout.ColumnFormat
- The value.
Returns
The same instance.
public static StackedBar WithLabelColumn(StackedBar stackedBar, Action<ColumnFormat> configure) #StackedBarConfigures StackedBar.LabelColumn in place: Layout of the legend label column (default left-aligned).
Parameters
- stackedBar ConsoleMonster.Widgets.StackedBar
- The instance.
- configure System.Action<ConsoleMonster.Layout.ColumnFormat>
- Configures the value.
Returns
The same instance.
public static StackedBar WithMaxLegendColumns(StackedBar stackedBar, Int32 value) #StackedBarSets 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, so labels, counts and percentages line up.
Parameters
- stackedBar ConsoleMonster.Widgets.StackedBar
- The instance.
- value System.Int32
- The value.
Returns
The same instance.
public static StackedBar WithPercentColumn(StackedBar stackedBar, ColumnFormat value) #StackedBarSets StackedBar.PercentColumn: Layout of the legend percentage column (default right-aligned, four cells).
Parameters
- stackedBar ConsoleMonster.Widgets.StackedBar
- The instance.
- value ConsoleMonster.Layout.ColumnFormat
- The value.
Returns
The same instance.
public static StackedBar WithPercentColumn(StackedBar stackedBar, Action<ColumnFormat> configure) #StackedBarConfigures StackedBar.PercentColumn in place: Layout of the legend percentage column (default right-aligned, four cells).
Parameters
- stackedBar ConsoleMonster.Widgets.StackedBar
- The instance.
- configure System.Action<ConsoleMonster.Layout.ColumnFormat>
- Configures the value.
Returns
The same instance.
public static StackedBar WithShowLegend(StackedBar stackedBar, Boolean value = true) #StackedBarSets StackedBar.ShowLegend: Whether the legend line is shown (default true).
Parameters
- stackedBar ConsoleMonster.Widgets.StackedBar
- The instance.
- value System.Boolean = true
- The value (default true).
Returns
The same instance.
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?