ScoreGaugeFluent
ConsoleMonster.Widgets
The fluent methods of ScoreGauge, generated from its public properties: A property-named method sets a property and Add... adds to a collection, both returning the same instance.
Inheritance
- object
- ScoreGaugeFluent
Methods
public static ScoreGauge AddPart(ScoreGauge scoreGauge, KeyValuePair<string, string> item) #Adds an item to ScoreGauge.Parts: Literal label/value components, in their supplied order.
Parameters
- scoreGauge ConsoleMonster.Widgets.ScoreGauge
- The instance.
- item System.Collections.Generic.KeyValuePair<string, string>
- The item.
public static ScoreGauge AddParts(ScoreGauge scoreGauge, params KeyValuePair<string, string>[] items) #Adds items to ScoreGauge.Parts: Literal label/value components, in their supplied order.
Parameters
- scoreGauge ConsoleMonster.Widgets.ScoreGauge
- The instance.
- items System.Collections.Generic.KeyValuePair<string, string>[]
- The items, in order.
public static ScoreGauge AddParts(ScoreGauge scoreGauge, IEnumerable<KeyValuePair<string, string>> items) #Adds items to ScoreGauge.Parts: Literal label/value components, in their supplied order.
Parameters
- scoreGauge ConsoleMonster.Widgets.ScoreGauge
- The instance.
- items System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, string>>
- The items, in order.
public static ScoreGauge Maximum(ScoreGauge scoreGauge, double value) #Sets ScoreGauge.Maximum: The maximum score.
Parameters
- scoreGauge ConsoleMonster.Widgets.ScoreGauge
- The instance.
- value double
- The value.
Examples
// C# initializer or property // C# fluent
scoreGauge.Maximum = value; scoreGauge.Maximum(value);public static ScoreGauge Role(ScoreGauge scoreGauge, ThemeToken value) #Sets ScoreGauge.Role: The worst finding's role, supplied by the caller.
Parameters
- scoreGauge ConsoleMonster.Widgets.ScoreGauge
- The instance.
- value ConsoleMonster.Styling.ThemeToken
- The value.
Examples
// C# initializer or property // C# fluent
scoreGauge.Role = value; scoreGauge.Role(value);public static ScoreGauge Value(ScoreGauge scoreGauge, double value) #Sets ScoreGauge.Value: The engine's score.
Parameters
- scoreGauge ConsoleMonster.Widgets.ScoreGauge
- The instance.
- value double
- The value.
Examples
// C# initializer or property // C# fluent
scoreGauge.Value = value; scoreGauge.Value(value);public static ScoreGauge Width(ScoreGauge scoreGauge, int value) #Sets ScoreGauge.Width: A fixed gauge width, or zero for 24 cells at wide widths and 20 at narrow widths.
Parameters
- scoreGauge ConsoleMonster.Widgets.ScoreGauge
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
scoreGauge.Width = value; scoreGauge.Width(value);