TX Text Control .NET Server

RemoveTrailingWhitespace Property

Property|Introduced in 31.0
Namespace
TXTextControl.DocumentServer.DataSources
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 MergeSettings.RemoveTrailingWhitespace to configure remove trailing whitespace as part of the merge settings workflow. The configured value is checked before the workflow continues.

mergeSettings.RemoveTrailingWhitespace = true;
if (mergeSettings.RemoveTrailingWhitespace)
{
    Console.WriteLine("Merge Settings: Remove Trailing Whitespace is enabled.");
}