TX Text Control .NET for WPF

ImageMergedEventArgs Class

Class|Introduced in 20.0
Namespace
TXTextControl.DocumentServer
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.
Inherits
  1. EventArgs
  2. MailMerge.ImageMergedEventArgs

Description

The ImageMergedEventArgs class provides data for the ImageMerged event.

Syntax

public class MailMerge.ImageMergedEventArgs : EventArgs

Examples

The following example creates an Image Merged Event Args instance and configures its descriptive text setting for a document workflow.

TXTextControl.DocumentServer.MailMerge.ImageMergedEventArgs imageMergedEventArgs = new(System.Drawing.Image.FromFile(@"Images\icon.png"), "CustomerName", 100);
imageMergedEventArgs.DescriptiveText = "Quarterly sales by region";

Members

Constructors

ConstructorDescription
ImageMergedEventArgsNot described in the reference. public ImageMergedEventArgs(System.Drawing.Image image, string name, int id);

Properties

PropertyDescription
DataRowGets the data row which is used to supply the current image with merge content.
DescriptiveTextGets or sets the descriptive text of the image. This property can be used to replace the descriptive text.
IDGets the ID of the merged image.
ImageGets or sets the merged image. This allows the merge result to be subsequently changed.
MergeBlockNameIf the image is part of a merge block, this property returns the name of the block. If not, an empty string is returned.
MergedGets a boolean value that indicates whether the current image has been merged successfully or not.
NameGets the name of the merged image.
NestingDepthIf the image is part of a merge block, this property returns the one-based nesting depth of the block. Otherwise 0 is returned.
SubTextPartIDGets the ID of the subtext part the image is part of. Is 0 if the image is not part of a subtext part.
SubTextPartNumberGets the 1-based number of the subtext part the image is part of. Is 0 if the image is not part of a subtext part.