TX Text Control .NET for Windows Forms

ContentControlFieldAdapter Constructor

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

Description

Initializes a new instance of the ContentControlFieldAdapter class.

Syntax

ContentControlFieldAdapter()

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

public ContentControlFieldAdapter();

ContentControlFieldAdapter(ApplicationField)

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

public ContentControlFieldAdapter(ApplicationField appField);
ParameterDescription
appField

Specifies the ApplicationField to be adapted.

Examples

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

Console.WriteLine($"Type Name: {contentControlFieldAdapter.TypeName}");
Console.WriteLine("Content Control Field Adapter is ready for use.");