# MergeBlockInfo.BlockMergingCondition Property

> 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.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 26.0
- **Namespace:** `TXTextControl.DocumentServer.DataSources`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXDocumentServer.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXDocumentServer.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDocumentServer.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.DocumentServer.DataSources > MergeBlockInfo.BlockMergingCondition Property
- **368 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datasources/mergeblockinfo/blockmergingcondition-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datasources/mergeblockinfo/blockmergingcondition-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datasources/mergeblockinfo/blockmergingcondition-property/llms-full.txt

---

### 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

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

```vbnet
Public Property BlockMergingCondition As List(Of FilterInstruction)
```

### 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.

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

```vbnet
mergeBlockInfo.BlockMergingCondition = New List(Of TXTextControl.DocumentServer.DataShaping.FilterInstruction)()
mergeBlockInfo.Apply()
```

---

## Nearby

- **Previous:** [MergeBlockInfo.Apply Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datasources/mergeblockinfo/apply-method/llms-full.txt)
- **Next:** [MergeBlockInfo.ChildBlocks Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datasources/mergeblockinfo/childblocks-property/llms-full.txt)
