TX Text Control .NET Server

RemoveTrailingWhitespace Property

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

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