MailMergeDataField Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a single mail merge field in a data source.
public interface class MailMergeDataField
[System.Runtime.InteropServices.Guid("00020919-0000-0000-C000-000000000046")]
public interface MailMergeDataField
type MailMergeDataField = interface
Public Interface MailMergeDataField
- Attributes
Remarks
The MailMergeDataField object is a member of the MailMergeDataFields collection. The MailMergeDataFields collection includes all the data fields in a mail merge data source (for example, Name, Address, and City).
Use DataFields(index
), where index
is the data field name or the index number, to return a single MailMergeDataField object. The index number represents the position of the data field in the mail merge data source.
You cannot add fields to the MailMergeDataFields collection. All data fields in a data source are automatically included in the MailMergeDataFields collection.
Properties
Application |
Returns a Application object that represents the Microsoft Word application. |
Creator |
Returns a 32-bit integer that indicates the application in which the specified object was created. |
Index |
Returns an Integer that represents the position of an item in a collection. |
Name |
Returns or sets the name of the specified object. |
Parent |
Returns an object that represents the parent object of the specified object. |
Value |
Returns the contents of the mail merge data field for the current record. |
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應