Bewerken

Delen via


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
type MailMergeField = interface
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

Returns a Application object that represents the Microsoft Word application.

Code

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

Creator

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

Locked

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

Next

Returns the next object in the collection.

Parent

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

Previous

Returns the previous object in the collection.

Type

Returns the field type.

Methods

Copy()

Copies the specified object to the Clipboard.

Cut()

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

Delete()

Deletes the specified object.

Select()

Selects the specified object.

Applies to