# MergeSettings.RemoveEmptyBlocks Property

> Specifies whether the content of empty merge blocks should be removed from the template or not. The default value is true.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 31.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 > MergeSettings.RemoveEmptyBlocks Property
- **380 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datasources/mergesettings/removeemptyblocks-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datasources/mergesettings/removeemptyblocks-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datasources/mergesettings/removeemptyblocks-property/llms-full.txt

---

### Description

Specifies whether the content of empty merge blocks should be removed from the template or not. The default value is true.

### Syntax

```csharp
public bool RemoveEmptyBlocks { get; set; }
```

```vbnet
Public Property RemoveEmptyBlocks As Boolean
```

### Examples

The following example uses `MergeSettings.RemoveEmptyBlocks` to configure remove empty blocks as part of the merge settings workflow. The configured value is checked before the workflow continues.

```csharp
mergeSettings.RemoveEmptyBlocks = true;
if (mergeSettings.RemoveEmptyBlocks)
{
    Console.WriteLine("Merge Settings: Remove Empty Blocks is enabled.");
}
```

```vbnet
mergeSettings.RemoveEmptyBlocks = True
If mergeSettings.RemoveEmptyBlocks Then
    Console.WriteLine("Merge Settings: Remove Empty Blocks is enabled.")
End If
```

---

## Nearby

- **Previous:** [MergeSettings Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datasources/mergesettings/constructor/llms-full.txt)
- **Next:** [MergeSettings.RemoveEmptyFields Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datasources/mergesettings/removeemptyfields-property/llms-full.txt)
