Click or drag to resize
FieldMergingEventArgsFieldName Property
Gets the field name if Field type is MergeField, otherwise (if it is If, MergeRec or MergeSeq) .

Namespace:  GemBox.Document.MailMerging
Assembly:  GemBox.Document (in GemBox.Document.dll) Version: 25.3.30.1255
Syntax
public string FieldName { get; }

Property Value

Type: String
The field name if Field type is MergeField, otherwise (if it is If, MergeRec or MergeSeq) .
Remarks

To successfully retrieve field name, Field.InstructionInlines must contain only Runs.

Field's instruction text is then constructed by calling Field.GetInstructionText method and field name is parsed from the instruction text.

For more information, see customize mail merge sample.

See Also