FormText Class
- Namespace
TXTextControl.DocumentServer. Fields
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. Core. SDK
- Assembly
TXDocumentServer.Core. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. Core. SDK TXDocumentServer.from the setup.dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXDocumentServer.dll
- Inherits
- Field
Adapter - Form
Field Adapter - Form
Text
- Field
Description
The FormText class implements the MS Word specific FORMTEXT field. This field must be used in combination with an ApplicationField that should be modified using this adapter.
Syntax
public sealed class FormText : FormFieldAdapterPublic NotInheritable Class FormText
Inherits FormFieldAdapterExamples
The following example creates a Form Text instance and configures its max length setting for a document workflow.
TXTextControl.DocumentServer.Fields.FormText formText = new();
formText.MaxLength = 1;Dim formText As New TXTextControl.DocumentServer.Fields.FormText()
formText.MaxLength = 1Members
Constructors
| Constructor | Description |
|---|---|
| FormFieldAdapter | Initializes a new instance of the FormFieldAdapter class. (Inherited from FormFieldAdapter.) |
| FormText | Initializes a new instance of the FormText class. |
Properties
| Property | Description |
|---|---|
| Bounds | Gets and sets the bounds of the form field. The rectangle's location and the size are specified in twips. (Inherited from FormFieldAdapter.) |
| CalcOnExit | Gets or sets the CalcOnExit property of the field. (Inherited from FormFieldAdapter.) |
| Enabled | Specifies whether the field is enabled or not. (Inherited from FormFieldAdapter.) |
| Font | Gets and sets the font of the form field. (Inherited from FormFieldAdapter.) |
| Format | Gets or sets the TextFormatOptions of the field. |
| HelpText | Gets and sets the help text of the field. (Inherited from FormFieldAdapter.) |
| MaxLength | Gets and sets the maximum length of the field. |
| Name | Gets and sets the name of the form field. (Inherited from FormFieldAdapter.) |
| StatusText | Gets and sets the status text of the field. (Inherited from FormFieldAdapter.) |
| Text | Gets and sets the text of the form field. (Inherited from FormFieldAdapter.) |
| Type | Gets or sets the type of the field. |
Fields
| Field | Description |
|---|---|
| TYPE_NAME | Not described in the reference. public const string TYPE_NAME = "FORMTEXT"; |