NumberPromptFluent
ConsoleMonster.Interactive
The fluent methods of NumberPrompt, 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
- NumberPromptFluent
Methods
public static NumberPrompt Configure(NumberPrompt numberPrompt, Action<NumberPrompt> configure) #Assigns callbacks and related configuration without invoking delegate-valued properties.
Parameters
- numberPrompt ConsoleMonster.Interactive.NumberPrompt
- The instance.
- configure System.Action<ConsoleMonster.Interactive.NumberPrompt>
- Assignments applied in order.
Examples
// C# initializer or property // C# fluent
numberPrompt.Validator = value; Ui.NumberPrompt().Configure(configured => configured.Validator = value);public static NumberPrompt Culture(NumberPrompt numberPrompt, CultureInfo? value) #Sets NumberPrompt.Culture: The culture that parses and formats the number; null uses the current culture.
Parameters
- numberPrompt ConsoleMonster.Interactive.NumberPrompt
- The instance.
- value System.Globalization.CultureInfo?
- The value.
Examples
// C# initializer or property // C# fluent
numberPrompt.Culture = value; Ui.NumberPrompt().Culture(value);public static NumberPrompt Default(NumberPrompt numberPrompt, decimal value) #Sets Prompt<decimal>.Default: The default answer: pre-selected, accepted with Enter, and returned in non-interactive sessions.
Parameters
- numberPrompt ConsoleMonster.Interactive.NumberPrompt
- The instance.
- value decimal
- The value.
Examples
// C# initializer or property // C# fluent
numberPrompt.Default = value; Ui.NumberPrompt().Default(value);public static NumberPrompt Description(NumberPrompt numberPrompt, string? value) #Sets Prompt<decimal>.Description: Help text under the question.
Parameters
- numberPrompt ConsoleMonster.Interactive.NumberPrompt
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
numberPrompt.Description = value; Ui.NumberPrompt().Description(value);public static NumberPrompt Integer(NumberPrompt numberPrompt, bool value) #Sets NumberPrompt.Integer: Whether only whole numbers are accepted.
Parameters
- numberPrompt ConsoleMonster.Interactive.NumberPrompt
- The instance.
- value bool
- The value.
Examples
// C# initializer or property // C# fluent
numberPrompt.Integer = value; Ui.NumberPrompt().Integer(value);public static NumberPrompt Integer(NumberPrompt numberPrompt) #Sets NumberPrompt.Integer to true.
Parameters
- numberPrompt ConsoleMonster.Interactive.NumberPrompt
- The instance to configure.
public static NumberPrompt Maximum(NumberPrompt numberPrompt, decimal? value) #Sets NumberPrompt.Maximum: The largest accepted value.
Parameters
- numberPrompt ConsoleMonster.Interactive.NumberPrompt
- The instance.
- value decimal?
- The value.
Examples
// C# initializer or property // C# fluent
numberPrompt.Maximum = value; Ui.NumberPrompt().Maximum(value);public static NumberPrompt Minimum(NumberPrompt numberPrompt, decimal? value) #Sets NumberPrompt.Minimum: The smallest accepted value.
Parameters
- numberPrompt ConsoleMonster.Interactive.NumberPrompt
- The instance.
- value decimal?
- The value.
Examples
// C# initializer or property // C# fluent
numberPrompt.Minimum = value; Ui.NumberPrompt().Minimum(value);public static NumberPrompt ParameterName(NumberPrompt numberPrompt, string? value) #Sets Prompt<decimal>.ParameterName: The parameter that supplies this value non-interactively (-Domain, --domain); named in the non-interactive error message.
Parameters
- numberPrompt ConsoleMonster.Interactive.NumberPrompt
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
numberPrompt.ParameterName = value; Ui.NumberPrompt().ParameterName(value);public static NumberPrompt Step(NumberPrompt numberPrompt, decimal value) #Sets NumberPrompt.Step: The step of Up and Down.
Parameters
- numberPrompt ConsoleMonster.Interactive.NumberPrompt
- The instance.
- value decimal
- The value.
Examples
// C# initializer or property // C# fluent
numberPrompt.Step = value; Ui.NumberPrompt().Step(value);public static NumberPrompt Title(NumberPrompt numberPrompt, string value) #Sets Prompt<decimal>.Title: The question.
Parameters
- numberPrompt ConsoleMonster.Interactive.NumberPrompt
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
numberPrompt.Title = value; Ui.NumberPrompt().Title(value);