TextQuestionOptionsFluent
ConsoleMonster.Interactive
The fluent methods of TextQuestionOptions, 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
- TextQuestionOptionsFluent
Methods
public static TextQuestionOptions AddHistory(TextQuestionOptions textQuestionOptions, string item) #Adds an item to TextQuestionOptions.History: Earlier single-line answers, oldest first; forbidden for secrets.
Parameters
- textQuestionOptions ConsoleMonster.Interactive.TextQuestionOptions
- The instance.
- item string
- The item.
public static TextQuestionOptions AddHistory(TextQuestionOptions textQuestionOptions, params string[] items) #Adds items to TextQuestionOptions.History: Earlier single-line answers, oldest first; forbidden for secrets.
Parameters
- textQuestionOptions ConsoleMonster.Interactive.TextQuestionOptions
- The instance.
- items string[]
- The items, in order.
public static TextQuestionOptions AddHistory(TextQuestionOptions textQuestionOptions, IEnumerable<string> items) #Adds items to TextQuestionOptions.History: Earlier single-line answers, oldest first; forbidden for secrets.
Parameters
- textQuestionOptions ConsoleMonster.Interactive.TextQuestionOptions
- The instance.
- items System.Collections.Generic.IEnumerable<string>
- The items, in order.
public static TextQuestionOptions AllowEmpty(TextQuestionOptions textQuestionOptions, bool value) #Sets TextQuestionOptions.AllowEmpty: Allows an empty secret; secrets are required by default.
Parameters
- textQuestionOptions ConsoleMonster.Interactive.TextQuestionOptions
- The instance.
- value bool
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.TextQuestionOptions { AllowEmpty = value }; Ui.Options<global::ConsoleMonster.Interactive.TextQuestionOptions>().AllowEmpty(value);public static TextQuestionOptions AllowEmpty(TextQuestionOptions textQuestionOptions) #Sets TextQuestionOptions.AllowEmpty to true.
Parameters
- textQuestionOptions ConsoleMonster.Interactive.TextQuestionOptions
- The instance to configure.
public static TextQuestionOptions AsSecret(TextQuestionOptions textQuestionOptions, bool value) #Sets TextQuestionOptions.AsSecret: Uses the secret editor, without history or defaults.
Parameters
- textQuestionOptions ConsoleMonster.Interactive.TextQuestionOptions
- The instance.
- value bool
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.TextQuestionOptions { AsSecret = value }; Ui.Options<global::ConsoleMonster.Interactive.TextQuestionOptions>().AsSecret(value);public static TextQuestionOptions AsSecret(TextQuestionOptions textQuestionOptions) #Sets TextQuestionOptions.AsSecret to true.
Parameters
- textQuestionOptions ConsoleMonster.Interactive.TextQuestionOptions
- The instance to configure.
public static TextQuestionOptions Configure(TextQuestionOptions textQuestionOptions, Action<TextQuestionOptions> configure) #Assigns callbacks and related configuration without invoking delegate-valued properties.
Parameters
- textQuestionOptions ConsoleMonster.Interactive.TextQuestionOptions
- The instance.
- configure System.Action<ConsoleMonster.Interactive.TextQuestionOptions>
- Assignments applied in order.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.TextQuestionOptions { Validator = value }; Ui.Options<global::ConsoleMonster.Interactive.TextQuestionOptions>().Configure(configured => configured.Validator = value);public static TextQuestionOptions Default(TextQuestionOptions textQuestionOptions, string? value) #Sets TextQuestionOptions.Default: The default answer; setting null still explicitly supplies a default.
Parameters
- textQuestionOptions ConsoleMonster.Interactive.TextQuestionOptions
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.TextQuestionOptions { Default = value }; Ui.Options<global::ConsoleMonster.Interactive.TextQuestionOptions>().Default(value);public static TextQuestionOptions Description(TextQuestionOptions textQuestionOptions, string? value) #Sets TextQuestionOptions.Description: Help text below the question.
Parameters
- textQuestionOptions ConsoleMonster.Interactive.TextQuestionOptions
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.TextQuestionOptions { Description = value }; Ui.Options<global::ConsoleMonster.Interactive.TextQuestionOptions>().Description(value);public static TextQuestionOptions Height(TextQuestionOptions textQuestionOptions, int value) #Sets TextQuestionOptions.Height: Visible multiline rows.
Parameters
- textQuestionOptions ConsoleMonster.Interactive.TextQuestionOptions
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.TextQuestionOptions { Height = value }; Ui.Options<global::ConsoleMonster.Interactive.TextQuestionOptions>().Height(value);public static TextQuestionOptions MaxLength(TextQuestionOptions textQuestionOptions, int value) #Sets TextQuestionOptions.MaxLength: The maximum character count for ordinary text.
Parameters
- textQuestionOptions ConsoleMonster.Interactive.TextQuestionOptions
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.TextQuestionOptions { MaxLength = value }; Ui.Options<global::ConsoleMonster.Interactive.TextQuestionOptions>().MaxLength(value);public static TextQuestionOptions MaxLines(TextQuestionOptions textQuestionOptions, int value) #Sets TextQuestionOptions.MaxLines: Maximum lines for multiline text.
Parameters
- textQuestionOptions ConsoleMonster.Interactive.TextQuestionOptions
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.TextQuestionOptions { MaxLines = value }; Ui.Options<global::ConsoleMonster.Interactive.TextQuestionOptions>().MaxLines(value);public static TextQuestionOptions MinLength(TextQuestionOptions textQuestionOptions, int value) #Sets TextQuestionOptions.MinLength: The minimum accepted character count.
Parameters
- textQuestionOptions ConsoleMonster.Interactive.TextQuestionOptions
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.TextQuestionOptions { MinLength = value }; Ui.Options<global::ConsoleMonster.Interactive.TextQuestionOptions>().MinLength(value);public static TextQuestionOptions Multiline(TextQuestionOptions textQuestionOptions, bool value) #Sets TextQuestionOptions.Multiline: Uses the multiline editor; unavailable with AsSecret.
Parameters
- textQuestionOptions ConsoleMonster.Interactive.TextQuestionOptions
- The instance.
- value bool
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.TextQuestionOptions { Multiline = value }; Ui.Options<global::ConsoleMonster.Interactive.TextQuestionOptions>().Multiline(value);public static TextQuestionOptions Multiline(TextQuestionOptions textQuestionOptions) #Sets TextQuestionOptions.Multiline to true.
Parameters
- textQuestionOptions ConsoleMonster.Interactive.TextQuestionOptions
- The instance to configure.
public static TextQuestionOptions ParameterName(TextQuestionOptions textQuestionOptions, string? value) #Sets TextQuestionOptions.ParameterName: The caller parameter named when a non-interactive answer is missing.
Parameters
- textQuestionOptions ConsoleMonster.Interactive.TextQuestionOptions
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.TextQuestionOptions { ParameterName = value }; Ui.Options<global::ConsoleMonster.Interactive.TextQuestionOptions>().ParameterName(value);public static TextQuestionOptions Pattern(TextQuestionOptions textQuestionOptions, string? value) #Sets TextQuestionOptions.Pattern: A pattern which the entire single-line answer must match.
Parameters
- textQuestionOptions ConsoleMonster.Interactive.TextQuestionOptions
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.TextQuestionOptions { Pattern = value }; Ui.Options<global::ConsoleMonster.Interactive.TextQuestionOptions>().Pattern(value);public static TextQuestionOptions PatternMessage(TextQuestionOptions textQuestionOptions, string? value) #Sets TextQuestionOptions.PatternMessage: The error for an unmatched pattern.
Parameters
- textQuestionOptions ConsoleMonster.Interactive.TextQuestionOptions
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.TextQuestionOptions { PatternMessage = value }; Ui.Options<global::ConsoleMonster.Interactive.TextQuestionOptions>().PatternMessage(value);public static TextQuestionOptions Placeholder(TextQuestionOptions textQuestionOptions, string? value) #Sets TextQuestionOptions.Placeholder: The hint shown while empty.
Parameters
- textQuestionOptions ConsoleMonster.Interactive.TextQuestionOptions
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.TextQuestionOptions { Placeholder = value }; Ui.Options<global::ConsoleMonster.Interactive.TextQuestionOptions>().Placeholder(value);public static TextQuestionOptions PrefillDefault(TextQuestionOptions textQuestionOptions, bool value) #Sets TextQuestionOptions.PrefillDefault: Puts the single-line default in the editor.
Parameters
- textQuestionOptions ConsoleMonster.Interactive.TextQuestionOptions
- The instance.
- value bool
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.TextQuestionOptions { PrefillDefault = value }; Ui.Options<global::ConsoleMonster.Interactive.TextQuestionOptions>().PrefillDefault(value);public static TextQuestionOptions PrefillDefault(TextQuestionOptions textQuestionOptions) #Sets TextQuestionOptions.PrefillDefault to true.
Parameters
- textQuestionOptions ConsoleMonster.Interactive.TextQuestionOptions
- The instance to configure.
public static TextQuestionOptions Required(TextQuestionOptions textQuestionOptions, bool value) #Sets TextQuestionOptions.Required: Whether ordinary text must be nonempty.
Parameters
- textQuestionOptions ConsoleMonster.Interactive.TextQuestionOptions
- The instance.
- value bool
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.TextQuestionOptions { Required = value }; Ui.Options<global::ConsoleMonster.Interactive.TextQuestionOptions>().Required(value);public static TextQuestionOptions Required(TextQuestionOptions textQuestionOptions) #Sets TextQuestionOptions.Required to true.
Parameters
- textQuestionOptions ConsoleMonster.Interactive.TextQuestionOptions
- The instance to configure.
public static TextQuestionOptions Title(TextQuestionOptions textQuestionOptions, string value) #Sets TextQuestionOptions.Title: The question.
Parameters
- textQuestionOptions ConsoleMonster.Interactive.TextQuestionOptions
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.TextQuestionOptions { Title = value }; Ui.Options<global::ConsoleMonster.Interactive.TextQuestionOptions>().Title(value);