TX Text Control .NET Server

IsMergeBlock Method

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

Checks if a given SubTextPart is a merge block.

Syntax

public static bool IsMergeBlock(SubTextPart subTextPart);

Parameters

ParameterDescription
subTextPart

The SubTextPart object to be checked.

Examples

The following example checks whether merge block applies to the data source manager.

if (TXTextControl.DocumentServer.DataSources.DataSourceManager.IsMergeBlock(new SubTextPart("CustomerName", 100)))
{
    Console.WriteLine("Is Merge Block completed successfully.");
}