Skip to content
ConsoleMonster
Class

SelectFluent

ConsoleMonster.Interactive

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

The fluent methods of Select, generated from its public properties: With... sets a property and Add... adds to a collection, both returning the same instance.

Inheritance

  • object
  • SelectFluent

Methods

public static Select WithEnabled(Select select, bool value = true) #

Sets InputControl.Enabled: Whether the control accepts input and participates in focus traversal.

Parameters

select ConsoleMonster.Interactive.Select required
The instance.
value bool = true optional
The value (default true).

Returns

Select The same instance.
public static Select WithLabel(Select select, string? value) #

Sets InputControl.Label: The visible label, or null to use the name.

Parameters

select ConsoleMonster.Interactive.Select required
The instance.
value string? required
The value.

Returns

Select The same instance.
public static Select WithPageSize(Select select, int value) #

Sets SelectionInputBase.PageSize: The preferred number of choice rows, at least one. Set before running.

Parameters

select ConsoleMonster.Interactive.Select required
The instance.
value int required
The value.

Returns

Select The same instance.
public static Select WithTabIndex(Select select, int value) #

Sets InputControl.TabIndex: Focus order; equal values preserve declaration order.

Parameters

select ConsoleMonster.Interactive.Select required
The instance.
value int required
The value.

Returns

Select The same instance.
public static Select WithValidationMessage(Select select, string? value) #

Sets InputControl.ValidationMessage: The current validation message below the control, or null.

Parameters

select ConsoleMonster.Interactive.Select required
The instance.
value string? required
The value.

Returns

Select The same instance.
public static Select WithValue(Select select, object? value) #

Sets Select.Value: The committed value; null also represents an empty selection. Assign only enabled choices' values.

Parameters

select ConsoleMonster.Interactive.Select required
The instance.
value object? required
The value.

Returns

Select The same instance.