TX Text Control .NET Server

RemoveEmptyLines Property

Property|Introduced in 26.0
Namespace
TXTextControl.DocumentServer
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

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

Syntax

public bool RemoveEmptyLines { get; set; }

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.

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

Further Reading