TX Text Control .NET for WPF

MergeSettings Class

Class|Introduced in 31.0
Namespace
TXTextControl.DocumentServer.DataSources
Package
TXTextControl.TextControl.WPF.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXDocumentServer.dll
Install
dotnet add package TXTextControl.TextControl.WPF.SDK .NET 8 and later. For .NET Framework, reference TXDocumentServer.dll from the setup.

Description

The MergeSettings class is intended for passing additional settings to the DataSourceManager.Merge method.

Syntax

public class MergeSettings

Examples

The following example creates a Merge Settings instance and configures its remove empty fields setting for a document workflow.

TXTextControl.DocumentServer.DataSources.MergeSettings mergeSettings = new();
mergeSettings.RemoveEmptyFields = true;

Members

Constructors

ConstructorDescription
MergeSettingsInitializes a new instance of the MergeSettings class.

Properties

PropertyDescription
AsSingleDocumentSpecifies 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.
RemoveEmptyBlocksSpecifies whether the content of empty merge blocks should be removed from the template or not. The default value is true.
RemoveEmptyFieldsSpecifies whether empty fields should be removed from the template or not. The default value is true.
RemoveEmptyImagesSpecifies whether images which don't have merge data should be removed from the template or not. The default value is true.
RemoveEmptyLinesSpecifies whether text lines which are empty after merging should be removed from the template or not. The default value is true.
RemoveTrailingWhitespaceSpecifies whether trailing whitespace should be removed before saving a document. The default value is true.