TX Text Control .NET Server

PreserveFormatting Property

Property|Introduced in 15.0
Namespace
TXTextControl.DocumentServer.Fields
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 the field's formatting should be preserved.

Syntax

public bool PreserveFormatting { get; set; }

Examples

The following example uses MailMergeFieldAdapter.PreserveFormatting to configure preserve formatting as part of the mail merge field adapter workflow. The configured value is checked before the workflow continues.

mailMergeFieldAdapter.PreserveFormatting = true;
if (mailMergeFieldAdapter.PreserveFormatting)
{
    Console.WriteLine("Mail Merge Field Adapter: Preserve Formatting is enabled.");
}

Limitations

This property is not used by the MailMerge component.