Class
KeyBindingFluent
ConsoleMonster.Interactive
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
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
keyBinding.Group = value; keyBinding.Group(value);InFooter 2 overloads
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
- The instance.
- value string?
- The value.
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
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
keyBinding.Order = value; keyBinding.Order(value);