TX Text Control .NET for WPF

RemoveEmptyLines Property

Property|Introduced in 31.0
Namespace
TXTextControl.DocumentServer.DataSources
Package
TXTextControl.TextControl.WPF.SDK as TXDocumentServer.dll from the private NuGet feed or Text Control Offline Packages

Description

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

Syntax

public bool RemoveEmptyLines { get; set; }

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.

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