DocumentSettingsPart.AddMailMergeRecipientDataPart Method (MailMergeRecipientDataPartType)
Adds a MailMergeRecipientDataPart to the DocumentSettingsPart.
Namespace: DocumentFormat.OpenXml.Packaging
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
Public Function AddMailMergeRecipientDataPart ( _
partType As MailMergeRecipientDataPartType _
) As MailMergeRecipientDataPart
'Usage
Dim instance As DocumentSettingsPart
Dim partType As MailMergeRecipientDataPartType
Dim returnValue As MailMergeRecipientDataPart
returnValue = instance.AddMailMergeRecipientDataPart(partType)
public MailMergeRecipientDataPart AddMailMergeRecipientDataPart(
MailMergeRecipientDataPartType partType
)
Parameters
- partType
Type: DocumentFormat.OpenXml.Packaging.MailMergeRecipientDataPartType
The part type of the MailMergeRecipientDataPart.
Return Value
Type: DocumentFormat.OpenXml.Packaging.MailMergeRecipientDataPart
The newly added part.