TX Text Control .NET for WPF

FormFieldAdapter 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
Derived
FormCheckBox, FormDropDown, FormText

Description

The abstract FormFieldAdapter class is the base class of all special DocumentServer form field adapters. It implements the necessary means to access field properties such as the name or the text of a field.

Syntax

public abstract class FormFieldAdapter : FieldAdapter

Examples

The following example includes the name value from a Form Field Adapter object in application diagnostics. The created object is then available to the surrounding document workflow.

Console.WriteLine($"Name: {formFieldAdapter.Name}");
Console.WriteLine("Form Field Adapter is ready for use.");

Members

Constructors

ConstructorDescription
FieldAdapterInitializes a new instance of the FieldAdapter class. (Inherited from FieldAdapter.)
FormFieldAdapterInitializes a new instance of the FormFieldAdapter class.

Properties

PropertyDescription
ApplicationFieldGets the adapted ApplicationField of the field. Each special field acts like an adapter for the specific ApplicationField. (Inherited from FieldAdapter.)
BoundsGets and sets the bounds of the form field. The rectangle's location and the size are specified in twips.
CalcOnExitGets or sets the CalcOnExit property of the field.
EnabledSpecifies whether the field is enabled or not.
FontGets and sets the font of the form field.
HelpTextGets and sets the help text of the field.
IDGets the ID of the specific field through its adapter. (Inherited from FieldAdapter.)
LengthGets the number of characters in a text field through its adapter. (Inherited from FieldAdapter.)
NameGets and sets the name of the form field.
StartGets the first character position (one-based) of the field through its adapter. (Inherited from FieldAdapter.)
StatusTextGets and sets the status text of the field.
TextGets and sets the text of the form field.
TypeNameGets the field's type name of the specific field through its adapter. For example for the type name of a Microsoft Word MergeField is MERGEFIELD. If the type name of the field is changed, its parameters must also be changed. (Inherited from FieldAdapter.)

Methods

MethodDescription
ShowDialogOpens the specific field options dialog box. (Inherited from FieldAdapter.)

Fields

FieldDescription
TYPE_NAMERepresents the name of the respective field type. Every subclass of FieldAdapter overwrites this with its respective type name. (Inherited from FieldAdapter.)