MailMergeField Interface 

Represents a single mail merge field in a document.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Usage

Public Class ailMergeFieldImplementation
    Implements MailMergeField
End Class
Dim ailMergeFieldImplementation1 As New ailMergeFieldImplementation()

Syntax

Public Interface MailMergeField
public interface MailMergeField
public interface class MailMergeField
public interface MailMergeField
public interface MailMergeField

Remarks

The MailMergeDataField object is a member of the MailMergeDataFields collection. The MailMergeDataFields collection includes all the mail merge related fields in a document.

Use Fields(index), where index is the index number, to return a single MailMergeField object.

Use the Add method to add a merge field to the MailMergeFields collection.

The MailMergeFields collection has additional methods, such as AddAsk and AddFillIn, for adding fields related to a mail merge operation.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Microsoft.Office.Interop.Word Namespace

Other Resources

MailMergeField Members