PreserveFormatting Property
- Namespace
TXTextControl.DocumentServer. Fields
- Package
TXTextControl.asTextControl. Core. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXDocumentServer.dll
Description
Specifies whether the field's formatting should be preserved.
Syntax
public bool PreserveFormatting { get; set; }Public Property PreserveFormatting As BooleanExamples
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.");
}mailMergeFieldAdapter.PreserveFormatting = True
If mailMergeFieldAdapter.PreserveFormatting Then
Console.WriteLine("Mail Merge Field Adapter: Preserve Formatting is enabled.")
End IfLimitations
This property is not used by the MailMerge component.