TX Text Control .NET for Windows Forms

BlockRowMergedEventArgs Class

Class|Introduced in 14.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. MergedEventArgs
  3. DataMergedEventArgs
  4. MailMerge.BlockRowMergedEventArgs

Description

The BlockRowMergedEventArgs class provides data for the BlockRowMerged event.

Syntax

public class MailMerge.BlockRowMergedEventArgs : MailMerge.DataMergedEventArgs

Examples

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

TXTextControl.DocumentServer.MailMerge.BlockRowMergedEventArgs blockRowMergedEventArgs = new(10, 1, "CustomerName", new byte[] { 1 });
blockRowMergedEventArgs.Cancel = true;

Members

Constructors

ConstructorDescription
BlockRowMergedEventArgsNot described in the reference. public BlockRowMergedEventArgs(int num, int count, string blockName, byte[] document, int subTextPartID, int subTextPartNumber);

Properties

PropertyDescription
DataRowCountGets an int value that indicates the total number of data rows.
DataRowNumberGets an int value that indicates the currently merged data row in the merge block.
MergeBlockNameGets a string value that indicates current merge block name.
MergedBlockRowGets or sets a byte[] array that contains the complete data of the merged block row. The used format is the internal TX Text Control Unicode format.
SubTextPartIDGets the ID of the subtext part that represents the block.
SubTextPartNumberGets the 1-based number of the subtext part that represents the block.

Further Reading

  • Reporting: Removing Empty Table Rows –
  • MS Word Compatible Mail Merge Using TX Text Control Server for ASP.NET (incl. Windows Forms) –