Description
Creates and returns a MergeField at this Position. This merge field will have the specified name and contents.
C#
public MergeField InsertMergeField(System.String fieldName, System.String display)
vb.net
Public Function InsertMergeField(ByVal fieldName As String, ByVal display As String) As MergeField
Parameters
fieldName
AString representing the name of this merge field.
display
AString representing the text that will displayed for this merge field in the document.
Returns
AMergeField object representing the newly created merge field.
Exceptions
System.Exception
Examples
C#
MergeField mfield = e.InsertMergeField("MyField", "ThisNameIsDisplayed");vb.net
Dim mfield As MergeField = e.InsertMergeField("MyField", "ThisNameIsDisplayed")
