TextFormField Class
- Namespace
TXTextControl
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WPF. SDK
- Assembly
TXTextControl.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WPF. SDK TXTextControl.from the setup.dll
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 : FormFieldPublic Class TextFormField
Inherits FormFieldExamples
The following example adds a customer-name input field to a form.
TextFormField textFormField = new(20) { Name = "CustomerName" };
textControl.FormFields.Add(textFormField);Dim textFormField As New TextFormField(20) With { .Name = "CustomerName" }
textControl.FormFields.Add(textFormField)Members
Constructors
| Constructor | Description |
|---|---|
| TextFormField | Initializes a new instance of the TextFormField class. |
Properties
| Property | Description |
|---|---|
| DescriptiveText | Gets 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.) |
| EmptyWidth | Gets or sets the horizontal extension, in twips, of the form field, when it is empty. |
| Enabled | Gets 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
| Method | Description |
|---|---|
| FormFieldDialog | Opens a dialog box to alter the formatting attributes of the form field. (Inherited from FormField.) |