TextAreaFluent
ConsoleMonster.Interactive
The fluent methods of TextArea, generated from its public properties: With... sets a property and Add... adds to a collection, both returning the same instance.
Inheritance
- object
- TextAreaFluent
Methods
public static TextArea WithEnabled(TextArea textArea, bool value = true) #Sets InputControl.Enabled: Whether the control accepts input and participates in focus traversal.
Parameters
- textArea ConsoleMonster.Interactive.TextArea
- The instance.
- value bool = true
- The value (default true).
public static TextArea WithHeight(TextArea textArea, int value) #Sets TextArea.Height: The visible rows (default 6).
Parameters
- textArea ConsoleMonster.Interactive.TextArea
- The instance.
- value int
- The value.
public static TextArea WithLabel(TextArea textArea, string? value) #Sets InputControl.Label: The visible label, or null to use the name.
Parameters
- textArea ConsoleMonster.Interactive.TextArea
- The instance.
- value string?
- The value.
public static TextArea WithMaxLength(TextArea textArea, int value) #Sets TextArea.MaxLength: The maximum text length, in UTF-16 units.
Parameters
- textArea ConsoleMonster.Interactive.TextArea
- The instance.
- value int
- The value.
public static TextArea WithPlaceholder(TextArea textArea, string? value) #Sets TextArea.Placeholder: Muted text shown when the value is empty.
Parameters
- textArea ConsoleMonster.Interactive.TextArea
- The instance.
- value string?
- The value.
public static TextArea WithScrollRow(TextArea textArea, int value) #Sets TextArea.ScrollRow: The first visible row (kept between frames).
Parameters
- textArea ConsoleMonster.Interactive.TextArea
- The instance.
- value int
- The value.
public static TextArea WithTabIndex(TextArea textArea, int value) #Sets InputControl.TabIndex: Focus order; equal values preserve declaration order.
Parameters
- textArea ConsoleMonster.Interactive.TextArea
- The instance.
- value int
- The value.
public static TextArea WithValidationMessage(TextArea textArea, string? value) #Sets InputControl.ValidationMessage: The current validation message below the control, or null.
Parameters
- textArea ConsoleMonster.Interactive.TextArea
- The instance.
- value string?
- The value.
public static TextArea WithValue(TextArea textArea, string value) #Sets TextArea.Value: The multiline text value.
Parameters
- textArea ConsoleMonster.Interactive.TextArea
- The instance.
- value string
- The value.