TX Text Control .NET for WPF

AsSingleDocument Property

Property|Introduced in 31.0
Namespace
TXTextControl.DocumentServer.DataSources
Package
TXTextControl.TextControl.WPF.SDK as TXDocumentServer.dll from the private NuGet feed or Text Control Offline Packages

Description

Specifies whether to combine the merge result to a single document. If this is set to true, each merge result is separated from the previous one by a section break and starts at a new page. The default value is false.

Syntax

public bool AsSingleDocument { get; set; }

Examples

The following example uses MergeSettings.AsSingleDocument to configure as single document as part of the merge settings workflow. The configured value is checked before the workflow continues.

mergeSettings.AsSingleDocument = true;
if (mergeSettings.AsSingleDocument)
{
    Console.WriteLine("Merge Settings: As Single Document is enabled.");
}