Skip to content
ConsoleMonster
Class

MultiSelectFluent

ConsoleMonster.Interactive

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

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 required
The instance.
value bool = true optional
The value (default true).

Returns

MultiSelect The same instance.
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 required
The instance.
value string? required
The value.

Returns

MultiSelect The same instance.
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 required
The instance.
value int required
The value.

Returns

MultiSelect The same instance.
public static MultiSelect WithTabIndex(MultiSelect multiSelect, int value) #

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

Parameters

multiSelect ConsoleMonster.Interactive.MultiSelect required
The instance.
value int required
The value.

Returns

MultiSelect The same instance.
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 required
The instance.
value string? required
The value.

Returns

MultiSelect The same instance.
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 required
The instance.
value System.Collections.Generic.IReadOnlyList<object?> required
The value.

Returns

MultiSelect The same instance.