RemoveTrailingWhitespace Property
- Namespace
TXTextControl.DocumentServer. DataSources
- 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 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.");
}mergeSettings.RemoveTrailingWhitespace = True
If mergeSettings.RemoveTrailingWhitespace Then
Console.WriteLine("Merge Settings: Remove Trailing Whitespace is enabled.")
End If