RemoveEmptyLines Property
- Namespace
TXTextControl.DocumentServer
- Package
TXTextControl.asTextControl. WinForms. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline Packagesdll
Description
Specifies whether text lines which are empty after merging should be removed from the template or not. The default value is false.
Syntax
public bool RemoveEmptyLines { get; set; }Public Property RemoveEmptyLines As BooleanExamples
The following example uses MailMerge.RemoveEmptyLines to configure remove empty lines as part of the mail merge workflow. The configured value is checked before the workflow continues.
mailMerge.RemoveEmptyLines = true;
if (mailMerge.RemoveEmptyLines)
{
Console.WriteLine("Mail Merge: Remove Empty Lines is enabled.");
}mailMerge.RemoveEmptyLines = True
If mailMerge.RemoveEmptyLines Then
Console.WriteLine("Mail Merge: Remove Empty Lines is enabled.")
End If