TX Text Control .NET for WPF

MergeField 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 MergeField class.

Syntax

MergeField()

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

public MergeField();

MergeField(ApplicationField)

nitializes a new instance of the MergeField class with a connection to an existing ApplicationField.

public MergeField(ApplicationField appField);
ParameterDescription
appField

Specifies the ApplicationField to be adapted.

Examples

The following example creates a Merge Field instance and configures its name setting for a document workflow.

TXTextControl.DocumentServer.Fields.MergeField mergeField = new();
mergeField.Name = "MergeField1";

Further Reading

  • Reporting: Merging MS Word Documents with DocVariables –
  • MailMerge: Merge Hyperlinks into Merge Fields –
  • MailMerge: Dynamic, Custom SUM Fields in Merge Blocks –
  • Mail Merge with an MS SQL Server Database –