TX Text Control .NET Server

RemoveEmptyImages Property

Property|Introduced in 23.0
Namespace
TXTextControl.DocumentServer
Package
TXTextControl.TextControl.Core.SDK as TXDocumentServer.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXDocumentServer.dll

Description

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

Syntax

public bool RemoveEmptyImages { get; set; }

Examples

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

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

Further Reading