Skip to content
ConsoleMonster
Class

SelectQuestionOptionsFluent

ConsoleMonster.Interactive

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

The fluent methods of SelectQuestionOptions, 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
  • SelectQuestionOptionsFluent

Methods

public static SelectQuestionOptions AddChoice(SelectQuestionOptions selectQuestionOptions, Choice item) #

Adds an item to SelectQuestionOptions.Choices: The prepared choices; their values, enabled state and initial selection are retained.

Parameters

selectQuestionOptions ConsoleMonster.Interactive.SelectQuestionOptions required
The instance.
item ConsoleMonster.Interactive.Choice required
The item.

Returns

SelectQuestionOptions The same instance.
AddChoices 2 overloads
public static SelectQuestionOptions AddChoices(SelectQuestionOptions selectQuestionOptions, params Choice[] items) #

Adds items to SelectQuestionOptions.Choices: The prepared choices; their values, enabled state and initial selection are retained.

Parameters

selectQuestionOptions ConsoleMonster.Interactive.SelectQuestionOptions required
The instance.
items ConsoleMonster.Interactive.Choice[] required
The items, in order.

Returns

SelectQuestionOptions The same instance.
public static SelectQuestionOptions AddChoices(SelectQuestionOptions selectQuestionOptions, IEnumerable<Choice> items) #

Adds items to SelectQuestionOptions.Choices: The prepared choices; their values, enabled state and initial selection are retained.

Parameters

selectQuestionOptions ConsoleMonster.Interactive.SelectQuestionOptions required
The instance.
items System.Collections.Generic.IEnumerable<ConsoleMonster.Interactive.Choice> required
The items, in order.

Returns

SelectQuestionOptions The same instance.
Collapsed 2 overloads
public static SelectQuestionOptions Collapsed(SelectQuestionOptions selectQuestionOptions, bool value) #

Sets SelectQuestionOptions.Collapsed: Whether groups start collapsed; valid only with Multiple.

Parameters

selectQuestionOptions ConsoleMonster.Interactive.SelectQuestionOptions required
The instance.
value bool required
The value.

Returns

SelectQuestionOptions The same instance.

Examples

// C# initializer or property                                                          // C# fluent
new global::ConsoleMonster.Interactive.SelectQuestionOptions { Collapsed = value };    Ui.Options<global::ConsoleMonster.Interactive.SelectQuestionOptions>().Collapsed(value);
public static SelectQuestionOptions Collapsed(SelectQuestionOptions selectQuestionOptions) #

Sets SelectQuestionOptions.Collapsed to true.

Parameters

selectQuestionOptions ConsoleMonster.Interactive.SelectQuestionOptions required
The instance to configure.

Returns

SelectQuestionOptions The same instance.
public static SelectQuestionOptions Configure(SelectQuestionOptions selectQuestionOptions, Action<SelectQuestionOptions> configure) #

Assigns callbacks and related configuration without invoking delegate-valued properties.

Parameters

selectQuestionOptions ConsoleMonster.Interactive.SelectQuestionOptions required
The instance.
configure System.Action<ConsoleMonster.Interactive.SelectQuestionOptions> required
Assignments applied in order.

Returns

SelectQuestionOptions The same instance.

Examples

// C# initializer or property                                                        // C# fluent
new global::ConsoleMonster.Interactive.SelectQuestionOptions { Preview = value };    Ui.Options<global::ConsoleMonster.Interactive.SelectQuestionOptions>().Configure(configured => configured.Preview = value);
public static SelectQuestionOptions Default(SelectQuestionOptions selectQuestionOptions, object? value) #

Sets SelectQuestionOptions.Default: The default scalar or collection. Omission differs from an explicitly empty selection.

Parameters

selectQuestionOptions ConsoleMonster.Interactive.SelectQuestionOptions required
The instance.
value object? required
The value.

Returns

SelectQuestionOptions The same instance.

Examples

// C# initializer or property                                                        // C# fluent
new global::ConsoleMonster.Interactive.SelectQuestionOptions { Default = value };    Ui.Options<global::ConsoleMonster.Interactive.SelectQuestionOptions>().Default(value);
public static SelectQuestionOptions Description(SelectQuestionOptions selectQuestionOptions, string? value) #

Sets SelectQuestionOptions.Description: Help text below the question.

Parameters

selectQuestionOptions ConsoleMonster.Interactive.SelectQuestionOptions required
The instance.
value string? required
The value.

Returns

SelectQuestionOptions The same instance.

Examples

// C# initializer or property                                                            // C# fluent
new global::ConsoleMonster.Interactive.SelectQuestionOptions { Description = value };    Ui.Options<global::ConsoleMonster.Interactive.SelectQuestionOptions>().Description(value);
public static SelectQuestionOptions Maximum(SelectQuestionOptions selectQuestionOptions, int? value) #

Sets SelectQuestionOptions.Maximum: The most answers; valid only with Multiple.

Parameters

selectQuestionOptions ConsoleMonster.Interactive.SelectQuestionOptions required
The instance.
value int? required
The value.

Returns

SelectQuestionOptions The same instance.

Examples

// C# initializer or property                                                        // C# fluent
new global::ConsoleMonster.Interactive.SelectQuestionOptions { Maximum = value };    Ui.Options<global::ConsoleMonster.Interactive.SelectQuestionOptions>().Maximum(value);
public static SelectQuestionOptions Minimum(SelectQuestionOptions selectQuestionOptions, int? value) #

Sets SelectQuestionOptions.Minimum: The fewest answers; valid only with Multiple.

Parameters

selectQuestionOptions ConsoleMonster.Interactive.SelectQuestionOptions required
The instance.
value int? required
The value.

Returns

SelectQuestionOptions The same instance.

Examples

// C# initializer or property                                                        // C# fluent
new global::ConsoleMonster.Interactive.SelectQuestionOptions { Minimum = value };    Ui.Options<global::ConsoleMonster.Interactive.SelectQuestionOptions>().Minimum(value);
Multiple 2 overloads
public static SelectQuestionOptions Multiple(SelectQuestionOptions selectQuestionOptions, bool value) #

Sets SelectQuestionOptions.Multiple: Whether the answer is a collection instead of one value.

Parameters

selectQuestionOptions ConsoleMonster.Interactive.SelectQuestionOptions required
The instance.
value bool required
The value.

Returns

SelectQuestionOptions The same instance.

Examples

// C# initializer or property                                                         // C# fluent
new global::ConsoleMonster.Interactive.SelectQuestionOptions { Multiple = value };    Ui.Options<global::ConsoleMonster.Interactive.SelectQuestionOptions>().Multiple(value);
public static SelectQuestionOptions Multiple(SelectQuestionOptions selectQuestionOptions) #

Sets SelectQuestionOptions.Multiple to true.

Parameters

selectQuestionOptions ConsoleMonster.Interactive.SelectQuestionOptions required
The instance to configure.

Returns

SelectQuestionOptions The same instance.
public static SelectQuestionOptions PageSize(SelectQuestionOptions selectQuestionOptions, int value) #

Sets SelectQuestionOptions.PageSize: The preferred number of visible choices; zero retains the renderer default (10 single, 12 multiple).

Parameters

selectQuestionOptions ConsoleMonster.Interactive.SelectQuestionOptions required
The instance.
value int required
The value.

Returns

SelectQuestionOptions The same instance.

Examples

// C# initializer or property                                                         // C# fluent
new global::ConsoleMonster.Interactive.SelectQuestionOptions { PageSize = value };    Ui.Options<global::ConsoleMonster.Interactive.SelectQuestionOptions>().PageSize(value);
public static SelectQuestionOptions ParameterName(SelectQuestionOptions selectQuestionOptions, string? value) #

Sets SelectQuestionOptions.ParameterName: The caller parameter named when an answer is missing.

Parameters

selectQuestionOptions ConsoleMonster.Interactive.SelectQuestionOptions required
The instance.
value string? required
The value.

Returns

SelectQuestionOptions The same instance.

Examples

// C# initializer or property                                                              // C# fluent
new global::ConsoleMonster.Interactive.SelectQuestionOptions { ParameterName = value };    Ui.Options<global::ConsoleMonster.Interactive.SelectQuestionOptions>().ParameterName(value);
public static SelectQuestionOptions Title(SelectQuestionOptions selectQuestionOptions, string value) #

Sets SelectQuestionOptions.Title: The question.

Parameters

selectQuestionOptions ConsoleMonster.Interactive.SelectQuestionOptions required
The instance.
value string required
The value.

Returns

SelectQuestionOptions The same instance.

Examples

// C# initializer or property                                                      // C# fluent
new global::ConsoleMonster.Interactive.SelectQuestionOptions { Title = value };    Ui.Options<global::ConsoleMonster.Interactive.SelectQuestionOptions>().Title(value);