RemoveEmptyBlocks Property
- Namespace
TXTextControl.DocumentServer
- 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 MailMerge.RemoveEmptyBlocks to configure remove empty blocks as part of the mail merge workflow. The configured value is checked before the workflow continues.
mailMerge.RemoveEmptyBlocks = true;
if (mailMerge.RemoveEmptyBlocks)
{
Console.WriteLine("Mail Merge: Remove Empty Blocks is enabled.");
}mailMerge.RemoveEmptyBlocks = True
If mailMerge.RemoveEmptyBlocks Then
Console.WriteLine("Mail Merge: Remove Empty Blocks is enabled.")
End If