RemoveEmptyFields Property
- Namespace
TXTextControl.DocumentServer. DataSources
- Package
TXTextControl.asTextControl. WinForms. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline Packagesdll
Description
Specifies whether empty fields should be removed from the template or not. The default value is true.
Syntax
public bool RemoveEmptyFields { get; set; }Public Property RemoveEmptyFields As BooleanExamples
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.");
}mergeSettings.RemoveEmptyFields = True
If mergeSettings.RemoveEmptyFields Then
Console.WriteLine("Merge Settings: Remove Empty Fields is enabled.")
End If