Skip to content
ConsoleMonster
Class

TextAreaFieldFluent

ConsoleMonster.Interactive

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

The fluent methods of TextAreaField, generated from its public properties: A property-named method sets a property and Add... adds to a collection, both returning the same instance.

Inheritance

  • object
  • TextAreaFieldFluent

Methods

AddDependsOn 3 overloads
public static TextAreaField AddDependsOn(TextAreaField textAreaField, string item) #

Adds an item to Field.DependsOn: Fields whose change resets this field (and reloads its options).

Parameters

textAreaField ConsoleMonster.Interactive.TextAreaField required
The instance.
item string required
The item.

Returns

TextAreaField The same instance.
public static TextAreaField AddDependsOn(TextAreaField textAreaField, params string[] items) #

Adds items to Field.DependsOn: Fields whose change resets this field (and reloads its options).

Parameters

textAreaField ConsoleMonster.Interactive.TextAreaField required
The instance.
items string[] required
The items, in order.

Returns

TextAreaField The same instance.
public static TextAreaField AddDependsOn(TextAreaField textAreaField, IEnumerable<string> items) #

Adds items to Field.DependsOn: Fields whose change resets this field (and reloads its options).

Parameters

textAreaField ConsoleMonster.Interactive.TextAreaField required
The instance.
items System.Collections.Generic.IEnumerable<string> required
The items, in order.

Returns

TextAreaField The same instance.
public static TextAreaField Default(TextAreaField textAreaField, object? value) #

Sets Field.Default: The declared default: the starting value until a value is set, and values equal to it are left out of the equivalent command.

Parameters

textAreaField ConsoleMonster.Interactive.TextAreaField required
The instance.
value object? required
The value.

Returns

TextAreaField The same instance.

Examples

// C# initializer or property     // C# fluent
textAreaField.Default = value;    textAreaField.Default(value);
public static TextAreaField Height(TextAreaField textAreaField, int value) #

Sets TextAreaField.Height: The visible rows of the editor (default 8).

Parameters

textAreaField ConsoleMonster.Interactive.TextAreaField required
The instance.
value int required
The value.

Returns

TextAreaField The same instance.

Examples

// C# initializer or property    // C# fluent
textAreaField.Height = value;    textAreaField.Height(value);
public static TextAreaField Help(TextAreaField textAreaField, string? value) #

Sets Field.Help: Help shown while the field has focus.

Parameters

textAreaField ConsoleMonster.Interactive.TextAreaField required
The instance.
value string? required
The value.

Returns

TextAreaField The same instance.

Examples

// C# initializer or property    // C# fluent
textAreaField.Help = value;      textAreaField.Help(value);
public static TextAreaField Label(TextAreaField textAreaField, string value) #

Sets Field.Label: The label.

Parameters

textAreaField ConsoleMonster.Interactive.TextAreaField required
The instance.
value string required
The value.

Returns

TextAreaField The same instance.

Examples

// C# initializer or property    // C# fluent
textAreaField.Label = value;     textAreaField.Label(value);
public static TextAreaField MaxLength(TextAreaField textAreaField, int value) #

Sets TextAreaField.MaxLength: The most characters.

Parameters

textAreaField ConsoleMonster.Interactive.TextAreaField required
The instance.
value int required
The value.

Returns

TextAreaField The same instance.

Examples

// C# initializer or property       // C# fluent
textAreaField.MaxLength = value;    textAreaField.MaxLength(value);
public static TextAreaField MaxLines(TextAreaField textAreaField, int value) #

Sets TextAreaField.MaxLines: The most lines.

Parameters

textAreaField ConsoleMonster.Interactive.TextAreaField required
The instance.
value int required
The value.

Returns

TextAreaField The same instance.

Examples

// C# initializer or property      // C# fluent
textAreaField.MaxLines = value;    textAreaField.MaxLines(value);
public static TextAreaField MinLength(TextAreaField textAreaField, int value) #

Sets TextAreaField.MinLength: The fewest characters.

Parameters

textAreaField ConsoleMonster.Interactive.TextAreaField required
The instance.
value int required
The value.

Returns

TextAreaField The same instance.

Examples

// C# initializer or property       // C# fluent
textAreaField.MinLength = value;    textAreaField.MinLength(value);
public static TextAreaField ParameterName(TextAreaField textAreaField, string? value) #

Sets Field.ParameterName: The command-line parameter this field supplies (Domain, -Domain, --domain); null leaves the field out of the equivalent command.

Parameters

textAreaField ConsoleMonster.Interactive.TextAreaField required
The instance.
value string? required
The value.

Returns

TextAreaField The same instance.

Examples

// C# initializer or property           // C# fluent
textAreaField.ParameterName = value;    textAreaField.ParameterName(value);
public static TextAreaField Placeholder(TextAreaField textAreaField, string? value) #

Sets TextAreaField.Placeholder: Muted text while empty.

Parameters

textAreaField ConsoleMonster.Interactive.TextAreaField required
The instance.
value string? required
The value.

Returns

TextAreaField The same instance.

Examples

// C# initializer or property         // C# fluent
textAreaField.Placeholder = value;    textAreaField.Placeholder(value);
Remember 2 overloads
public static TextAreaField Remember(TextAreaField textAreaField, bool value) #

Sets Field.Remember: Whether the value is kept in presets and remembered choices (never for secrets).

Parameters

textAreaField ConsoleMonster.Interactive.TextAreaField required
The instance.
value bool required
The value.

Returns

TextAreaField The same instance.

Examples

// C# initializer or property      // C# fluent
textAreaField.Remember = value;    textAreaField.Remember(value);
public static TextAreaField Remember(TextAreaField textAreaField) #

Sets Field.Remember to true.

Parameters

textAreaField ConsoleMonster.Interactive.TextAreaField required
The instance to configure.

Returns

TextAreaField The same instance.
Required 2 overloads
public static TextAreaField Required(TextAreaField textAreaField, bool value) #

Sets Field.Required: Whether an empty value is refused.

Parameters

textAreaField ConsoleMonster.Interactive.TextAreaField required
The instance.
value bool required
The value.

Returns

TextAreaField The same instance.

Examples

// C# initializer or property      // C# fluent
textAreaField.Required = value;    textAreaField.Required(value);
public static TextAreaField Required(TextAreaField textAreaField) #

Sets Field.Required to true.

Parameters

textAreaField ConsoleMonster.Interactive.TextAreaField required
The instance to configure.

Returns

TextAreaField The same instance.
public static TextAreaField Value(TextAreaField textAreaField, object? value) #

Sets Field.Value: The current value.

Parameters

textAreaField ConsoleMonster.Interactive.TextAreaField required
The instance.
value object? required
The value.

Returns

TextAreaField The same instance.

Examples

// C# initializer or property    // C# fluent
textAreaField.Value = value;     textAreaField.Value(value);