SelectFluent
ConsoleMonster.Interactive
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
- The instance.
- value bool = true
- The value (default true).
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
- The instance.
- value string?
- The value.
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
- The instance.
- value int
- The value.
public static Select WithTabIndex(Select select, int value) #Sets InputControl.TabIndex: Focus order; equal values preserve declaration order.
Parameters
- select ConsoleMonster.Interactive.Select
- The instance.
- value int
- The value.
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
- The instance.
- value string?
- The value.
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
- The instance.
- value object?
- The value.