MailMergeFields Interface
A collection of MailMergeField objects that represent the mail merge related fields in a document.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
<GuidAttribute("0002091F-0000-0000-C000-000000000046")> _
Public Interface MailMergeFields _
Inherits IEnumerable
'Usage
Dim instance As MailMergeFields
[GuidAttribute("0002091F-0000-0000-C000-000000000046")]
public interface MailMergeFields : IEnumerable
Remarks
Use the Fields property to return the MailMergeFields collection.
Use the Add method to add a merge field to the MailMergeFields collection.
Use Fields(index), where index is the index number, to return a single MailMergeField object.
The MailMergeFields collection has additional methods, such as AddAsk and AddFillIn, for adding fields related to a mail merge operation.