TX Text Control .NET Server

MailMergeFieldAdapter Constructor

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

Description

Initializes a new instance of the MailMergeFieldAdapter class.

Syntax

MailMergeFieldAdapter()

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

public MailMergeFieldAdapter();

MailMergeFieldAdapter(ApplicationField)

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

public MailMergeFieldAdapter(ApplicationField appField);
ParameterDescription
appField

Specifies the to-be-adapted ApplicationField.

Examples

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

Console.WriteLine($"Preserve Formatting: {mailMergeFieldAdapter.PreserveFormatting}");
Console.WriteLine("Mail Merge Field Adapter is ready for use.");