TX Text Control .NET for WPF

FormText Class

Class|Introduced in 15.0
Namespace
TXTextControl.DocumentServer.Fields
Package
TXTextControl.TextControl.WPF.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXDocumentServer.dll
Install
dotnet add package TXTextControl.TextControl.WPF.SDK .NET 8 and later. For .NET Framework, reference TXDocumentServer.dll from the setup.
Inherits
  1. FieldAdapter
  2. FormFieldAdapter
  3. FormText

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 : FormFieldAdapter

Examples

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;

Members

Constructors

ConstructorDescription
FormFieldAdapterInitializes a new instance of the FormFieldAdapter class. (Inherited from FormFieldAdapter.)
FormTextInitializes a new instance of the FormText class.

Properties

PropertyDescription
BoundsGets and sets the bounds of the form field. The rectangle's location and the size are specified in twips. (Inherited from FormFieldAdapter.)
CalcOnExitGets or sets the CalcOnExit property of the field. (Inherited from FormFieldAdapter.)
EnabledSpecifies whether the field is enabled or not. (Inherited from FormFieldAdapter.)
FontGets and sets the font of the form field. (Inherited from FormFieldAdapter.)
FormatGets or sets the TextFormatOptions of the field.
HelpTextGets and sets the help text of the field. (Inherited from FormFieldAdapter.)
MaxLengthGets and sets the maximum length of the field.
NameGets and sets the name of the form field. (Inherited from FormFieldAdapter.)
StatusTextGets and sets the status text of the field. (Inherited from FormFieldAdapter.)
TextGets and sets the text of the form field. (Inherited from FormFieldAdapter.)
TypeGets or sets the type of the field.

Fields

FieldDescription
TYPE_NAMENot described in the reference. public const string TYPE_NAME = "FORMTEXT";