Skip to content
ConsoleMonster
Class

ScoreGaugeFluent

ConsoleMonster.Widgets

Namespace
ConsoleMonster.Widgets
Assembly
ConsoleMonster
Modifiers
static
Attributes
GeneratedCode("ConsoleMonster.Generators", "1.0.0")

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 required
The instance.
item System.Collections.Generic.KeyValuePair<string, string> required
The item.

Returns

ScoreGauge The same instance.
AddParts 2 overloads
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 required
The instance.
items System.Collections.Generic.KeyValuePair<string, string>[] required
The items, in order.

Returns

ScoreGauge The same instance.
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 required
The instance.
items System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, string>> required
The items, in order.

Returns

ScoreGauge The same instance.
public static ScoreGauge Maximum(ScoreGauge scoreGauge, double value) #

Sets ScoreGauge.Maximum: The maximum score.

Parameters

scoreGauge ConsoleMonster.Widgets.ScoreGauge required
The instance.
value double required
The value.

Returns

ScoreGauge The same instance.

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 required
The instance.
value ConsoleMonster.Styling.ThemeToken required
The value.

Returns

ScoreGauge The same instance.

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 required
The instance.
value double required
The value.

Returns

ScoreGauge The same instance.

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 required
The instance.
value int required
The value.

Returns

ScoreGauge The same instance.

Examples

// C# initializer or property    // C# fluent
scoreGauge.Width = value;        scoreGauge.Width(value);