TX Text Control .NET Server

MergeBlockNamePrefix Property

Property|Introduced in 24.0
Namespace
TXTextControl.DocumentServer
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

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.