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