FieldMergingEventArgs Class
Provides data for the FieldMerging event.
- Inheritance:
- System.ObjectFieldMergingEventArgs
Remarks
For more information, see customize mail merge example.
Properties
Document
Gets the owner document.
Property Value
The owner document.
Field
Gets the Field that will be replaced.
Property Value
FieldName
Gets the field name if Field type is MergeField, otherwise (if it is If, MergeRec or MergeSeq) null.
Property Value
- System.String
The field name if Field type is MergeField, otherwise (if it is If, MergeRec or MergeSeq) null.
Remarks
To successfully retrieve field name, InstructionInlines must contain only Runs.
Field's instruction text is then constructed by calling GetInstructionText() method and field name is parsed from the instruction text.
For more information, see customize mail merge example.
Inline
Property Value
Remarks
Value of this property depends on a value of the Inlines property.
If Inlines is not empty, this property represents the first Inline element from it, otherwise null.
Setting this property will automatically clear Inlines collection and will add new value to it, if value is not null.
Inlines
Property Value
IsValueFound
Gets a value indicating whether a value was found in the data source.
Property Value
- System.Boolean
true if a value was found in the data source; otherwise, false.
MergeContext
Gets the mail merge execution context.
public MailMergeContext MergeContext { get; }
Public ReadOnly Property MergeContext As MailMergeContext
Property Value
The mail merge execution context.
Value
Gets the data source value for a specified Field.
Property Value
- System.Object
The data source value for a specified Field.