# MailMerge.RemoveEmptyLines Property

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

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 26.0
- **Namespace:** `TXTextControl.DocumentServer`
- **Package:** `TXTextControl.TextControl.WPF.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 WPF > Reference > TXTextControl.DocumentServer > MailMerge.RemoveEmptyLines Property
- **374 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver/mailmerge/removeemptylines-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver/mailmerge/removeemptylines-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver/mailmerge/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 false.

### Syntax

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

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

### Examples

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

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

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

---

## Nearby

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