Description |
---|
Excerpt |
---|
This class represents a merge field in a document. Merge fields are used in WordWriter templates as data placeholders. |
Signature | C# | C# |
---|---|---|
Wiki Markup | ||
{description}
{excerpt}This class represents a merge field in a document. Merge fields are used in WordWriter templates as data placeholders.{excerpt}
{signature:C#}
public sealed class MergeField : Field
| ||
Signature | ||
{signature}{signature:vb.net | vb.net | }
Public NotInheritable Class MergeField
Inherits Field
|
Remarks |
---|
To create a merge field, use Element.InsertMergeFieldBefore or Element.InsertMergeFieldAfter. The following sample demonstrates creating a merge field at the end of a new document and retrieving the first merge field of an existing document. |
Example | |||
---|---|---|---|
Code Block | | csharp | csharp |
title | C# | ||
Code Block | vb.net | title |
Methods |
---|
...
Name
...
Description
...
...
{code} {example} {methods} ||Name||Description|| |[GetFieldName()|MergeField.GetFieldName() |
...
]|{excerpt-include:MergeField.GetFieldName() |
...
|nopanel |
...
=true}| |