TX Text Control .NET for Windows Forms

MergeBlockInfo Constructor

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

Description

Initializes a new instance of the MergeBlockInfo class.

Syntax

MergeBlockInfo(string)

Initializes a new instance of the MergeBlockInfo class and sets the table name.

public MergeBlockInfo(string tableName);
ParameterDescription
tableName

The name of the table which is the data source for this merge block.

MergeBlockInfo(SubTextPart)

Initializes a new instance of the MergeBlockInfo class from an existing SubTextPart already containing merge block meta data (i. e. filter and sorting instructions and a possible block merging condition).

public MergeBlockInfo(SubTextPart subTextPart);
ParameterDescription
subTextPart

A SubTextPart instance containing merge block meta data (i. e. filter and sorting instructions and a possible block merging condition).

Examples

The following example creates a Merge Block Info instance for a document-processing operation. The created object is then available to the surrounding document workflow.

TXTextControl.DocumentServer.DataSources.MergeBlockInfo mergeBlockInfo = new("CustomerName");
Console.WriteLine("Merge Block Info is ready for use.");