TX Text Control .NET for WPF

RemoveTrailingWhitespace Property

Property|Introduced in 16.0
Namespace
TXTextControl.DocumentServer
Package
TXTextControl.TextControl.WPF.SDK as TXDocumentServer.dll from the private NuGet feed or Text Control Offline Packages

Description

Specifies whether trailing whitespace should be removed before saving a document. The default value is true.

Syntax

public bool RemoveTrailingWhitespace { get; set; }

Examples

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.");
}