Skip to content
ConsoleMonster

API Reference

Class

TextField

Namespace ConsoleMonster.Interactive
Assembly ConsoleMonster
Base Field
Modifiers sealed

A line of text.

Inheritance

Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 2

Constructors

public TextField(String name, String? label = null) #

Creates a text field.

Parameters

name System.String requiredposition: 0
The key.
label System.String? = null optionalposition: 1
The label.

Properties

public override FieldKind Kind { get; } #

The kind.

public String? Placeholder { get; set; } #

Muted text while empty.

public Int32 MinLength { get; set; } #

The fewest characters.

public Int32 MaxLength { get; set; } #

The most characters.

public String? Pattern { get; set; } #

A pattern the whole value must match.

public String? PatternMessage { get; set; } #

The message when the pattern does not match.