TX Text Control .NET for Windows Forms

BlockMergingEventArgs Class

Class|Introduced in 23.0
Namespace
TXTextControl.DocumentServer
Package
TXTextControl.TextControl.WinForms.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXDocumentServer.dll
Install
dotnet add package TXTextControl.TextControl.WinForms.SDK .NET 8 and later. For .NET Framework, reference TXDocumentServer.dll from the setup.
Inherits
  1. CancelEventArgs
  2. MailMerge.BlockMergingEventArgs

Description

The BlockMergingEventArgs class provides data for the BlockMerging event.

Syntax

public class MailMerge.BlockMergingEventArgs : CancelEventArgs

Examples

The following example creates a Block Merging Event Args instance and configures its cancel setting for a document workflow.

TXTextControl.DocumentServer.MailMerge.BlockMergingEventArgs blockMergingEventArgs = new("CustomerName", Array.Empty<TXTextControl.DocumentServer.DataSources.IDataRowAdapter>());
blockMergingEventArgs.Cancel = true;

Members

Constructors

ConstructorDescription
BlockMergingEventArgsNot described in the reference. public BlockMergingEventArgs(string blockName, IDataRowAdapter[] data, int subTextPartID, int subTextPartNumber);

Properties

PropertyDescription
BlockDataGets the block data as an array of data rows. Each data row implements the IDataRowAdapter interface.
BlockNameGets the name of the merge block the event was fired for.
ColumnNamesGets the column names of the table supplying the data for the block.
SubTextPartIDGets the ID of the subtext part that represents the block.
SubTextPartNumberGets the 1-based number of the subtext part that represents the block.