Skip to content
ConsoleMonster
Class

ButtonFluent

ConsoleMonster.Interactive

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

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

Inheritance

  • object
  • ButtonFluent

Methods

public static Button WithEnabled(Button button, bool value = true) #

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

Parameters

button ConsoleMonster.Interactive.Button required
The instance.
value bool = true optional
The value (default true).

Returns

Button The same instance.
public static Button WithLabel(Button button, string? value) #

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

Parameters

button ConsoleMonster.Interactive.Button required
The instance.
value string? required
The value.

Returns

Button The same instance.
public static Button WithTabIndex(Button button, int value) #

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

Parameters

button ConsoleMonster.Interactive.Button required
The instance.
value int required
The value.

Returns

Button The same instance.
public static Button WithValidationMessage(Button button, string? value) #

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

Parameters

button ConsoleMonster.Interactive.Button required
The instance.
value string? required
The value.

Returns

Button The same instance.