# MergeSettings.RemoveEmptyLines Property

> Specifies whether text lines which are empty after merging should be removed from the template or not. The default value is true.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 31.0
- **Namespace:** `TXTextControl.DocumentServer.DataSources`
- **Package:** `TXTextControl.TextControl.WinForms.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 for Windows Forms > Reference > TXTextControl.DocumentServer.DataSources > MergeSettings.RemoveEmptyLines Property
- **379 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/mergesettings/removeemptylines-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/mergesettings/removeemptylines-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/mergesettings/removeemptylines-property/llms-full.txt

---

### Description

Specifies whether text lines which are empty after merging should be removed from the template or not. The default value is true.

### Syntax

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

```vbnet
Public Property RemoveEmptyLines As Boolean
```

### Examples

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

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

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

---

## Nearby

- **Previous:** [MergeSettings.RemoveEmptyImages Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/mergesettings/removeemptyimages-property/llms-full.txt)
- **Next:** [MergeSettings.RemoveTrailingWhitespace Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/mergesettings/removetrailingwhitespace-property/llms-full.txt)
