MailMergeFieldAdapter Constructor
- Namespace
TXTextControl.DocumentServer. Fields
- Package
TXTextControl.asTextControl. WPF. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline Packagesdll
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();Public Sub New()MailMergeFieldAdapter(ApplicationField)
Initializes a new instance of the MailMergeFieldAdapter class with a connection to an existing ApplicationField.
public MailMergeFieldAdapter(ApplicationField appField);Public Sub New(appField As ApplicationField)| Parameter | Description |
|---|---|
| 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.");Console.WriteLine($"Preserve Formatting: {mailMergeFieldAdapter.PreserveFormatting}")
Console.WriteLine("Mail Merge Field Adapter is ready for use.")