TextInputFluent
ConsoleMonster.Interactive
The fluent methods of TextInput, generated from its public properties: With... sets a property and Add... adds to a collection, both returning the same instance.
Inheritance
- object
- TextInputFluent
Methods
public static TextInput WithEnabled(TextInput textInput, bool value = true) #Sets InputControl.Enabled: Whether the control accepts input and participates in focus traversal.
Parameters
- textInput ConsoleMonster.Interactive.TextInput
- The instance.
- value bool = true
- The value (default true).
public static TextInput WithLabel(TextInput textInput, string? value) #Sets InputControl.Label: The visible label, or null to use the name.
Parameters
- textInput ConsoleMonster.Interactive.TextInput
- The instance.
- value string?
- The value.
public static TextInput WithMask(TextInput textInput, string? value) #Sets TextInput.Mask: The mask character for secrets, or null to show the text. An empty string hides the text entirely.
Parameters
- textInput ConsoleMonster.Interactive.TextInput
- The instance.
- value string?
- The value.
public static TextInput WithMaxLength(TextInput textInput, int value) #Sets TextInput.MaxLength: The maximum text length, in UTF-16 units.
Parameters
- textInput ConsoleMonster.Interactive.TextInput
- The instance.
- value int
- The value.
public static TextInput WithPlaceholder(TextInput textInput, string? value) #Sets TextInput.Placeholder: Muted text shown while the value is empty.
Parameters
- textInput ConsoleMonster.Interactive.TextInput
- The instance.
- value string?
- The value.
public static TextInput WithTabIndex(TextInput textInput, int value) #Sets InputControl.TabIndex: Focus order; equal values preserve declaration order.
Parameters
- textInput ConsoleMonster.Interactive.TextInput
- The instance.
- value int
- The value.
public static TextInput WithToken(TextInput textInput, ThemeToken value) #Sets TextInput.Token: The theme token for entered text.
Parameters
- textInput ConsoleMonster.Interactive.TextInput
- The instance.
- value ConsoleMonster.Styling.ThemeToken
- The value.
public static TextInput WithValidationMessage(TextInput textInput, string? value) #Sets InputControl.ValidationMessage: The current validation message below the control, or null.
Parameters
- textInput ConsoleMonster.Interactive.TextInput
- The instance.
- value string?
- The value.
public static TextInput WithValue(TextInput textInput, string value) #Sets TextInput.Value: The text value; edits notify the application after the control lock is released.
Parameters
- textInput ConsoleMonster.Interactive.TextInput
- The instance.
- value string
- The value.