TX Text Control .NET for WPF

FieldAdapter Constructor

Constructor|Introduced in 15.0
Namespace
TXTextControl.DocumentServer.Fields
Package
TXTextControl.TextControl.WPF.SDK as TXDocumentServer.dll from the private NuGet feed or Text Control Offline Packages

Description

Initializes a new instance of the FieldAdapter class.

Syntax

FieldAdapter()

Initializes a complete new instance of the FieldAdapter class without a connection to an existing ApplicationField.

public FieldAdapter();

FieldAdapter(ApplicationField)

Initializes a new instance of the FieldAdapter class with a connection to an existing ApplicationField.

public FieldAdapter(ApplicationField appField);
ParameterDescription
appField

Specifies the ApplicationField to be adapted.

Examples

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

Console.WriteLine($"Application Field: {fieldAdapter.ApplicationField}");
Console.WriteLine("Field Adapter is ready for use.");