TX Text Control .NET for WPF

RemoveEmptyFields 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 empty fields should be removed from the template or not. The default value is true.

Syntax

public bool RemoveEmptyFields { get; set; }

Examples

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

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