TextAreaFieldFluent
ConsoleMonster.Interactive
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
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
- The instance.
- item string
- The item.
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
- The instance.
- items string[]
- The items, in order.
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
- The instance.
- items System.Collections.Generic.IEnumerable<string>
- The items, in order.
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
- The instance.
- value object?
- The value.
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
- The instance.
- value int
- The value.
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
- The instance.
- value string?
- The value.
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
- The instance.
- value string
- The value.
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
- The instance.
- value int
- The value.
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
- The instance.
- value int
- The value.
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
- The instance.
- value int
- The value.
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
- The instance.
- value string?
- The value.
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
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
textAreaField.Placeholder = value; textAreaField.Placeholder(value);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
- The instance.
- value bool
- The value.
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
- The instance to configure.
public static TextAreaField Required(TextAreaField textAreaField, bool value) #Sets Field.Required: Whether an empty value is refused.
Parameters
- textAreaField ConsoleMonster.Interactive.TextAreaField
- The instance.
- value bool
- The value.
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
- The instance to configure.
public static TextAreaField Value(TextAreaField textAreaField, object? value) #Sets Field.Value: The current value.
Parameters
- textAreaField ConsoleMonster.Interactive.TextAreaField
- The instance.
- value object?
- The value.
Examples
// C# initializer or property // C# fluent
textAreaField.Value = value; textAreaField.Value(value);