MergeSettings Class
- Namespace
TXTextControl.DocumentServer. DataSources
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. Core. SDK
- Assembly
TXDocumentServer.Core. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. Core. SDK TXDocumentServer.from the setup.dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXDocumentServer.dll
Description
The MergeSettings class is intended for passing additional settings to the DataSourceManager.Merge method.
Syntax
public class MergeSettingsPublic Class MergeSettingsExamples
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;Dim mergeSettings As New TXTextControl.DocumentServer.DataSources.MergeSettings()
mergeSettings.RemoveEmptyFields = TrueMembers
Constructors
| Constructor | Description |
|---|---|
| MergeSettings | Initializes a new instance of the MergeSettings class. |
Properties
| Property | Description |
|---|---|
| AsSingleDocument | 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. |
| RemoveEmptyBlocks | Specifies whether the content of empty merge blocks should be removed from the template or not. The default value is true. |
| RemoveEmptyFields | Specifies whether empty fields should be removed from the template or not. The default value is true. |
| RemoveEmptyImages | Specifies whether images which don't have merge data should be removed from the template or not. The default value is true. |
| RemoveEmptyLines | Specifies whether text lines which are empty after merging should be removed from the template or not. The default value is true. |
| RemoveTrailingWhitespace | Specifies whether trailing whitespace should be removed before saving a document. The default value is true. |