Class
AppScreensFluent
ConsoleMonster.Interactive
The fluent methods of AppScreens, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.
Inheritance
- object
- AppScreensFluent
Methods
public static AppScreens BackKey(AppScreens appScreens, KeyChord item) #Adds an item to AppScreens.BackKeys: Keys that return to the previous screen when the focused input does not use them (default Escape and Backspace).
Parameters
- appScreens ConsoleMonster.Interactive.AppScreens
- The instance.
- item ConsoleMonster.Input.KeyChord
- The item.
public static AppScreens BackKeys(AppScreens appScreens, IEnumerable<KeyChord> items) #Adds items to AppScreens.BackKeys: Keys that return to the previous screen when the focused input does not use them (default Escape and Backspace).
Parameters
- appScreens ConsoleMonster.Interactive.AppScreens
- The instance.
- items System.Collections.Generic.IEnumerable<ConsoleMonster.Input.KeyChord>
- The items, in order.
public static AppScreens Current(AppScreens appScreens, Action<AppScreen> configure) #Configures AppScreens.Current in place: The current screen.
Parameters
- appScreens ConsoleMonster.Interactive.AppScreens
- The instance.
- configure System.Action<ConsoleMonster.Interactive.AppScreen>
- Configures the value.
public static AppScreens StateKey(AppScreens appScreens, string value) #Sets AppScreens.StateKey: The state key holding the current screen's key (default Screen).
Parameters
- appScreens ConsoleMonster.Interactive.AppScreens
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
appScreens.StateKey = value; appScreens.StateKey(value);