MultiSelectFluent
ConsoleMonster.Interactive
The fluent methods of MultiSelect, generated from its public properties: With... sets a property and Add... adds to a collection, both returning the same instance.
Inheritance
- object
- MultiSelectFluent
Methods
public static MultiSelect WithEnabled(MultiSelect multiSelect, bool value = true) #Sets InputControl.Enabled: Whether the control accepts input and participates in focus traversal.
Parameters
- multiSelect ConsoleMonster.Interactive.MultiSelect
- The instance.
- value bool = true
- The value (default true).
public static MultiSelect WithLabel(MultiSelect multiSelect, string? value) #Sets InputControl.Label: The visible label, or null to use the name.
Parameters
- multiSelect ConsoleMonster.Interactive.MultiSelect
- The instance.
- value string?
- The value.
public static MultiSelect WithPageSize(MultiSelect multiSelect, int value) #Sets SelectionInputBase.PageSize: The preferred number of choice rows, at least one. Set before running.
Parameters
- multiSelect ConsoleMonster.Interactive.MultiSelect
- The instance.
- value int
- The value.
public static MultiSelect WithTabIndex(MultiSelect multiSelect, int value) #Sets InputControl.TabIndex: Focus order; equal values preserve declaration order.
Parameters
- multiSelect ConsoleMonster.Interactive.MultiSelect
- The instance.
- value int
- The value.
public static MultiSelect WithValidationMessage(MultiSelect multiSelect, string? value) #Sets InputControl.ValidationMessage: The current validation message below the control, or null.
Parameters
- multiSelect ConsoleMonster.Interactive.MultiSelect
- The instance.
- value string?
- The value.
public static MultiSelect WithValue(MultiSelect multiSelect, IReadOnlyList<object?> value) #Sets MultiSelect.Value: A detached, read-only snapshot in choice declaration order. Assignments replace the selection atomically.
Parameters
- multiSelect ConsoleMonster.Interactive.MultiSelect
- The instance.
- value System.Collections.Generic.IReadOnlyList<object?>
- The value.