RemoveTrailingWhitespace Property
- Namespace
TXTextControl.DocumentServer
- Package
TXTextControl.asTextControl. WPF. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline Packagesdll
Description
Specifies whether trailing whitespace should be removed before saving a document. The default value is true.
Syntax
public bool RemoveTrailingWhitespace { get; set; }Public Property RemoveTrailingWhitespace As BooleanExamples
The following example uses MailMerge.RemoveTrailingWhitespace to configure remove trailing whitespace as part of the mail merge workflow. The configured value is checked before the workflow continues.
mailMerge.RemoveTrailingWhitespace = true;
if (mailMerge.RemoveTrailingWhitespace)
{
Console.WriteLine("Mail Merge: Remove Trailing Whitespace is enabled.");
}mailMerge.RemoveTrailingWhitespace = True
If mailMerge.RemoveTrailingWhitespace Then
Console.WriteLine("Mail Merge: Remove Trailing Whitespace is enabled.")
End If