TX Text Control .NET for WPF

IsMergeBlock Method

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

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.");
}