Skip to content
ConsoleMonster
Class

PathHopFluent

ConsoleMonster.Widgets

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

The fluent methods of PathHop, 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
  • PathHopFluent

Methods

public static PathHop AddChip(PathHop pathHop, string item) #

Adds an item to PathHop.Chips: Plain text categories rendered by the existing chip presenter.

Parameters

pathHop ConsoleMonster.Widgets.PathHop required
The instance.
item string required
The item.

Returns

PathHop The same instance.
AddChips 2 overloads
public static PathHop AddChips(PathHop pathHop, params string[] items) #

Adds items to PathHop.Chips: Plain text categories rendered by the existing chip presenter.

Parameters

pathHop ConsoleMonster.Widgets.PathHop required
The instance.
items string[] required
The items, in order.

Returns

PathHop The same instance.
public static PathHop AddChips(PathHop pathHop, IEnumerable<string> items) #

Adds items to PathHop.Chips: Plain text categories rendered by the existing chip presenter.

Parameters

pathHop ConsoleMonster.Widgets.PathHop required
The instance.
items System.Collections.Generic.IEnumerable<string> required
The items, in order.

Returns

PathHop The same instance.
Bold 2 overloads
public static PathHop Bold(PathHop pathHop, bool value) #

Sets PathHop.Bold: Whether the hop label is bold.

Parameters

pathHop ConsoleMonster.Widgets.PathHop required
The instance.
value bool required
The value.

Returns

PathHop The same instance.

Examples

// C# initializer or property    // C# fluent
pathHop.Bold = value;            pathHop.Bold(value);
public static PathHop Bold(PathHop pathHop) #

Sets PathHop.Bold to true.

Parameters

pathHop ConsoleMonster.Widgets.PathHop required
The instance to configure.

Returns

PathHop The same instance.
public static PathHop Role(PathHop pathHop, ThemeToken? value) #

Sets PathHop.Role: Optional label role, independent of the health marker.

Parameters

pathHop ConsoleMonster.Widgets.PathHop required
The instance.
value ConsoleMonster.Styling.ThemeToken? required
The value.

Returns

PathHop The same instance.

Examples

// C# initializer or property    // C# fluent
pathHop.Role = value;            pathHop.Role(value);
public static PathHop Status(PathHop pathHop, StatusKind? value) #

Sets PathHop.Status: An optional status, rendered with its glyph and theme role.

Parameters

pathHop ConsoleMonster.Widgets.PathHop required
The instance.
value ConsoleMonster.Styling.StatusKind? required
The value.

Returns

PathHop The same instance.

Examples

// C# initializer or property    // C# fluent
pathHop.Status = value;          pathHop.Status(value);