FieldMergedEventArgs Class
- Namespace
TXTextControl.DocumentServer
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WinForms. SDK
- Assembly
TXDocumentServer.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WinForms. SDK TXDocumentServer.from the setup.dll
- Inherits
- Cancel
Event Args - MergedEventArgs
- DataMergedEventArgs
- Mail
Merge. Field Merged Event Args
- Cancel
Description
The FieldMergedEventArgs class provides data for the FieldMerged event.
Syntax
public class MailMerge.FieldMergedEventArgs : MailMerge.DataMergedEventArgsPublic Class MailMerge.FieldMergedEventArgs
Inherits MailMerge.DataMergedEventArgsExamples
The following example creates a Field Merged Event Args instance and configures its cancel setting for a document workflow.
TXTextControl.DocumentServer.MailMerge.FieldMergedEventArgs fieldMergedEventArgs = new(new TXTextControl.DocumentServer.Fields.DateField(), new byte[] { 1 }, true);
fieldMergedEventArgs.Cancel = true;Dim fieldMergedEventArgs As New TXTextControl.DocumentServer.MailMerge.FieldMergedEventArgs(New TXTextControl.DocumentServer.Fields.DateField(), New Byte() { 1 }, True)
fieldMergedEventArgs.Cancel = TrueMembers
Constructors
| Constructor | Description |
|---|---|
| FieldMergedEventArgs | Not described in the reference. public FieldMergedEventArgs(MailMergeFieldAdapter mergeField, byte[] fieldData, bool merged); |
Properties
| Property | Description |
|---|---|
| Cancel | Gets or sets a value indicating whether the current merge process should be canceled. |
| DataRow | Gets the data row which is used to supply the current field with merge content. |
| MailMergeFieldAdapter | Gets or sets a MailMergeFieldAdapter that contains the already merged field. The complete field can be changed in this event. |
| MergeBlockName | If the merge field is part of a merge block, this property returns the name of the block. If not, an empty string is returned. |
| Merged | Gets a bool value that indicates whether the current field has been merged successfully or not. |
| MergedField | Gets or sets a byte array that contains the complete data of the merged field. The used format is the internal TX Text Control Unicode format. |
| NestingDepth | If the merge field is part of a merge block, this property returns the one-based nesting depth of the block. Otherwise 0 is returned. |
| SubTextPartID | Gets the ID of the subtext part the field is part of. Is 0 if the field is not part of a subtext part. |
| SubTextPartNumber | Gets the 1-based number of the subtext part the field is part of. Is 0 if the field is not part of a subtext part. |
| TableCell | If the merge field is inside of a table, this property returns the containing table cell as a TXTextControl.TableCell instance or null otherwise. |