Skip to content
ConsoleMonster
Class

KeyBindingFluent

ConsoleMonster.Interactive

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

The fluent methods of KeyBinding, 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
  • KeyBindingFluent

Methods

public static KeyBinding Group(KeyBinding keyBinding, string value) #

Sets KeyBinding.Group: The heading the binding is listed under in the key map.

Parameters

keyBinding ConsoleMonster.Interactive.KeyBinding required
The instance.
value string required
The value.

Returns

KeyBinding The same instance.

Examples

// C# initializer or property    // C# fluent
keyBinding.Group = value;        keyBinding.Group(value);
InFooter 2 overloads
public static KeyBinding InFooter(KeyBinding keyBinding, bool value) #

Sets KeyBinding.InFooter: Whether the footer shows the binding (the key map always lists it).

Parameters

keyBinding ConsoleMonster.Interactive.KeyBinding required
The instance.
value bool required
The value.

Returns

KeyBinding The same instance.

Examples

// C# initializer or property    // C# fluent
keyBinding.InFooter = value;     keyBinding.InFooter(value);
public static KeyBinding InFooter(KeyBinding keyBinding) #

Sets KeyBinding.InFooter to true.

Parameters

keyBinding ConsoleMonster.Interactive.KeyBinding required
The instance to configure.

Returns

KeyBinding The same instance.
public static KeyBinding KeyText(KeyBinding keyBinding, string? value) #

Sets KeyBinding.KeyText: How the keys are shown (for example ↑↓); null shows the first chord.

Parameters

keyBinding ConsoleMonster.Interactive.KeyBinding required
The instance.
value string? required
The value.

Returns

KeyBinding The same instance.

Examples

// C# initializer or property    // C# fluent
keyBinding.KeyText = value;      keyBinding.KeyText(value);
public static KeyBinding Order(KeyBinding keyBinding, int value) #

Sets KeyBinding.Order: Footer priority: lower values are shown first and dropped last when space runs out.

Parameters

keyBinding ConsoleMonster.Interactive.KeyBinding required
The instance.
value int required
The value.

Returns

KeyBinding The same instance.

Examples

// C# initializer or property    // C# fluent
keyBinding.Order = value;        keyBinding.Order(value);