TX Text Control .NET for WPF

TextFormField Class

Class|Introduced in 28.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.dll
Install
dotnet add package TXTextControl.TextControl.WPF.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.dll from the setup.
Inherits
  1. TextField
  2. FormField
  3. TextFormField

Description

An object of the TextFormField class represents a text input field on a form. It can be initially empty and it can have a horizontal extension, when it is empty.

Syntax

public class TextFormField : FormField

Examples

The following example adds a customer-name input field to a form.

TextFormField textFormField = new(20) { Name = "CustomerName" };
textControl.FormFields.Add(textFormField);

Members

Constructors

ConstructorDescription
TextFormFieldInitializes a new instance of the TextFormField class.

Properties

PropertyDescription
DescriptiveTextGets or sets a descriptive text for a form field. An empty string indicates that the form field has no such text. An empty string can also be used to delete a previously set text. (Inherited from FormField.)
EmptyWidthGets or sets the horizontal extension, in twips, of the form field, when it is empty.
EnabledGets or set a value indicating whether the form field is enabled. This property has only an effect, when the when the TextControl.EditMode is set to ReadAndSelect and the DocumentPermissions.AllowEditingFormFields property has been set to true. In this case a Formfield can only be edited, when its Enabled property is true. When a FormField is disabled, the TextFieldClicked and TextFieldDoubleClicked of the Formfield are suppressed. The default value of this property is true. (Inherited from FormField.)

Methods

MethodDescription
FormFieldDialogOpens a dialog box to alter the formatting attributes of the form field. (Inherited from FormField.)