MailMergeField MailMergeField MailMergeField Interface

Definition

Represents a single mail merge field in a document.

public interface class MailMergeField
[System.Runtime.InteropServices.Guid("0002091E-0000-0000-C000-000000000046")]
public interface MailMergeField
Public Interface MailMergeField
Attributes

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(Range, String) method to add a merge field to the MailMergeFields collection.

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

Properties

Application Application Application

Returns a Application object that represents the Microsoft Word application.

Code Code Code

Returns a Range object that represents a field's code.

Creator Creator Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

Locked Locked Locked

True if the specified field is locked. When a field is locked, you cannot update the field results.

Next Next Next

Returns the next object in the collection.

Parent Parent Parent

Returns an object that represents the parent object of the specified object.

Previous Previous Previous

Returns the previous object in the collection.

Type Type Type

Returns the field type.

Methods

Copy() Copy() Copy()

Copies the specified object to the Clipboard.

Cut() Cut() Cut()

Removes the specified object from the document and places it on the Clipboard.

Delete() Delete() Delete()

Deletes the specified object.

Select() Select() Select()

Selects the specified object.

Applies to