Skip to content
ConsoleMonster
Class

TextAreaFluent

ConsoleMonster.Interactive

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

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

Returns

TextArea The same instance.
public static TextArea WithHeight(TextArea textArea, int value) #

Sets TextArea.Height: The visible rows (default 6).

Parameters

textArea ConsoleMonster.Interactive.TextArea required
The instance.
value int required
The value.

Returns

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

Returns

TextArea The same instance.
public static TextArea WithMaxLength(TextArea textArea, int value) #

Sets TextArea.MaxLength: The maximum text length, in UTF-16 units.

Parameters

textArea ConsoleMonster.Interactive.TextArea required
The instance.
value int required
The value.

Returns

TextArea The same instance.
public static TextArea WithPlaceholder(TextArea textArea, string? value) #

Sets TextArea.Placeholder: Muted text shown when the value is empty.

Parameters

textArea ConsoleMonster.Interactive.TextArea required
The instance.
value string? required
The value.

Returns

TextArea The same instance.
public static TextArea WithScrollRow(TextArea textArea, int value) #

Sets TextArea.ScrollRow: The first visible row (kept between frames).

Parameters

textArea ConsoleMonster.Interactive.TextArea required
The instance.
value int required
The value.

Returns

TextArea The same instance.
public static TextArea WithTabIndex(TextArea textArea, int value) #

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

Parameters

textArea ConsoleMonster.Interactive.TextArea required
The instance.
value int required
The value.

Returns

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

Returns

TextArea The same instance.
public static TextArea WithValue(TextArea textArea, string value) #

Sets TextArea.Value: The multiline text value.

Parameters

textArea ConsoleMonster.Interactive.TextArea required
The instance.
value string required
The value.

Returns

TextArea The same instance.