TX Text Control .NET for Windows Forms

MergeBlockNamePrefix Property

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

Description

A static property returning the internal merge block name prefix “txmb_”. The name of a SubTextPart has to start with this prefix if it should be recognized as a repeating mail merge block by the merge methods of class MailMerge.

Syntax

public static string MergeBlockNamePrefix { get; }

Examples

The following example includes the merge block name prefix value in application diagnostics. The created object is then available to the surrounding document workflow.

Console.WriteLine($"Merge Block Name Prefix: {TXTextControl.DocumentServer.MailMerge.MergeBlockNamePrefix}");
Console.WriteLine("Mail Merge is ready for use.");

Limitations

Read only.