TX Text Control .NET for Windows Forms

RemoveEmptyImages Property

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

Description

Specifies whether images which don't have merge data should be removed from the template or not. The default value is true.

Syntax

public bool RemoveEmptyImages { get; set; }

Examples

The following example uses MergeSettings.RemoveEmptyImages to configure remove empty images as part of the merge settings workflow. The configured value is checked before the workflow continues.

mergeSettings.RemoveEmptyImages = false;
if (mergeSettings.RemoveEmptyImages)
{
    Console.WriteLine("Merge Settings: Remove Empty Images is enabled.");
}