Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Description

Excerpt

Creates and returns a MergeField at the end of this Element. This merge field will have the specified name and contents.

Signature
C#
C#
 public virtual MergeField InsertMergeFieldAfter(System.String fieldName, System.String display)
{signature}{signature:
}
Signature
vb.net
vb.net
Public Overridable Function InsertMergeFieldAfter(ByVal fieldName As String, ByVal display As String) As MergeField
{signature}
{parameters}
{param:fieldName}A {{String}} representing the name of this merge field.{param}
{param:display}A {{String}} representing the text that will be displayed for this merge field in the document.{param}
{returns}A {{MergeField}} object representing the newly created merge field.{returns}
{exceptions}
{exception:System.Exception}{exception}
{example}{code:csharp|title=C#}
Parameters
Param
fieldName
fieldName

A String representing the name of this merge field.

Param
display
display

A String representing the text that will be displayed for this merge field in the document.

Returns

A MergeField object representing the newly created merge field.

Exceptions
Exception
System.Exception
System.Exception

Example
Code Block
csharp
csharp
titleC#

MergeField mfield = e.InsertMergeFieldAfter("MyField", "ThisNameIsDisplayed");
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}

Dim mfield As MergeField = e.InsertMergeFieldAfter("MyField", "ThisNameIsDisplayed")
{code} {example}