Class
TextField

Abstract base for form fields that capture and display textual content, providing shared value handling and appearance invalidation.

Definition

Constructors

TextField(string)

Initialize the text field with the specified fieldName.

Declaration

cs-api-definition
public TextField(string fieldName)

Parameters

fieldName

string

The field name.

Properties

DefaultValue

Text value restored on form reset (default state).

Declaration

cs-api-definition
public string DefaultValue { get; set; }

Property Value

string

The default text content for this field, or null if no default value is specified.

Value

Current textual value displayed and submitted for this field.

Declaration

cs-api-definition
public string Value { get; set; }

Property Value

string

The text value entered by the user, or null if no text has been entered.