Skip to content
ConsoleMonster
Class

TextAreaPromptFluent

ConsoleMonster.Interactive

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

The fluent methods of TextAreaPrompt, 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
  • TextAreaPromptFluent

Methods

public static TextAreaPrompt Configure(TextAreaPrompt textAreaPrompt, Action<TextAreaPrompt> configure) #

Assigns callbacks and related configuration without invoking delegate-valued properties.

Parameters

textAreaPrompt ConsoleMonster.Interactive.TextAreaPrompt required
The instance.
configure System.Action<ConsoleMonster.Interactive.TextAreaPrompt> required
Assignments applied in order.

Returns

TextAreaPrompt The same instance.

Examples

// C# initializer or property        // C# fluent
textAreaPrompt.Validator = value;    textAreaPrompt.Configure(configured => configured.Validator = value);
public static TextAreaPrompt Default(TextAreaPrompt textAreaPrompt, string value) #

Sets Prompt<string>.Default: The default answer: pre-selected, accepted with Enter, and returned in non-interactive sessions.

Parameters

textAreaPrompt ConsoleMonster.Interactive.TextAreaPrompt required
The instance.
value string required
The value.

Returns

TextAreaPrompt The same instance.

Examples

// C# initializer or property      // C# fluent
textAreaPrompt.Default = value;    textAreaPrompt.Default(value);
public static TextAreaPrompt Description(TextAreaPrompt textAreaPrompt, string? value) #

Sets Prompt<string>.Description: Help text under the question.

Parameters

textAreaPrompt ConsoleMonster.Interactive.TextAreaPrompt required
The instance.
value string? required
The value.

Returns

TextAreaPrompt The same instance.

Examples

// C# initializer or property          // C# fluent
textAreaPrompt.Description = value;    textAreaPrompt.Description(value);
public static TextAreaPrompt Height(TextAreaPrompt textAreaPrompt, int value) #

Sets TextAreaPrompt.Height: The visible rows (default 6); longer text scrolls.

Parameters

textAreaPrompt ConsoleMonster.Interactive.TextAreaPrompt required
The instance.
value int required
The value.

Returns

TextAreaPrompt The same instance.

Examples

// C# initializer or property     // C# fluent
textAreaPrompt.Height = value;    textAreaPrompt.Height(value);
public static TextAreaPrompt MaxLength(TextAreaPrompt textAreaPrompt, int value) #

Sets TextAreaPrompt.MaxLength: The most characters the box takes.

Parameters

textAreaPrompt ConsoleMonster.Interactive.TextAreaPrompt required
The instance.
value int required
The value.

Returns

TextAreaPrompt The same instance.

Examples

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

Sets TextAreaPrompt.MaxLines: The most lines the box takes.

Parameters

textAreaPrompt ConsoleMonster.Interactive.TextAreaPrompt required
The instance.
value int required
The value.

Returns

TextAreaPrompt The same instance.

Examples

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

Sets TextAreaPrompt.MinLength: The fewest characters accepted.

Parameters

textAreaPrompt ConsoleMonster.Interactive.TextAreaPrompt required
The instance.
value int required
The value.

Returns

TextAreaPrompt The same instance.

Examples

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

Sets Prompt<string>.ParameterName: The parameter that supplies this value non-interactively (-Domain, --domain); named in the non-interactive error message.

Parameters

textAreaPrompt ConsoleMonster.Interactive.TextAreaPrompt required
The instance.
value string? required
The value.

Returns

TextAreaPrompt The same instance.

Examples

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

Sets TextAreaPrompt.Placeholder: Muted text in the empty box.

Parameters

textAreaPrompt ConsoleMonster.Interactive.TextAreaPrompt required
The instance.
value string? required
The value.

Returns

TextAreaPrompt The same instance.

Examples

// C# initializer or property          // C# fluent
textAreaPrompt.Placeholder = value;    textAreaPrompt.Placeholder(value);
Required 2 overloads
public static TextAreaPrompt Required(TextAreaPrompt textAreaPrompt, bool value) #

Sets TextAreaPrompt.Required: Whether an empty answer is refused.

Parameters

textAreaPrompt ConsoleMonster.Interactive.TextAreaPrompt required
The instance.
value bool required
The value.

Returns

TextAreaPrompt The same instance.

Examples

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

Sets TextAreaPrompt.Required to true.

Parameters

textAreaPrompt ConsoleMonster.Interactive.TextAreaPrompt required
The instance to configure.

Returns

TextAreaPrompt The same instance.
public static TextAreaPrompt Title(TextAreaPrompt textAreaPrompt, string value) #

Sets Prompt<string>.Title: The question.

Parameters

textAreaPrompt ConsoleMonster.Interactive.TextAreaPrompt required
The instance.
value string required
The value.

Returns

TextAreaPrompt The same instance.

Examples

// C# initializer or property    // C# fluent
textAreaPrompt.Title = value;    textAreaPrompt.Title(value);