RemoveEmptyBlocks Property
- Namespace
TXTextControl.DocumentServer. DataSources
- Package
TXTextControl.asTextControl. WinForms. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline Packagesdll
Description
Specifies whether the content of empty merge blocks should be removed from the template or not. The default value is true.
Syntax
public bool RemoveEmptyBlocks { get; set; }Public Property RemoveEmptyBlocks As BooleanExamples
The following example uses MergeSettings.RemoveEmptyBlocks to configure remove empty blocks as part of the merge settings workflow. The configured value is checked before the workflow continues.
mergeSettings.RemoveEmptyBlocks = true;
if (mergeSettings.RemoveEmptyBlocks)
{
Console.WriteLine("Merge Settings: Remove Empty Blocks is enabled.");
}mergeSettings.RemoveEmptyBlocks = True
If mergeSettings.RemoveEmptyBlocks Then
Console.WriteLine("Merge Settings: Remove Empty Blocks is enabled.")
End If