TX Text Control .NET Server

BlockMergingCondition Property

Property|Introduced in 26.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

Gets or sets a condition the parent data row of this merge block has to satisfy so that this merge block is merged at all. To keep the merge block independent of a condition just leave this property at the default value null.

Syntax

public List<FilterInstruction> BlockMergingCondition { get; set; }

Examples

The following example uses MergeBlockInfo.BlockMergingCondition to configure block merging condition as part of the merge block info workflow. The change is then applied to the active document or user interface.

mergeBlockInfo.BlockMergingCondition = new List<TXTextControl.DocumentServer.DataShaping.FilterInstruction>();
mergeBlockInfo.Apply();

Further Reading

  • MailMerge: Rendering Conditional Table Rows –