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

Return Value

Type: DocumentFormat.OpenXml.Packaging.MailMergeRecipientDataPart
The newly added part.

See Also

Reference

DocumentSettingsPart Class

DocumentSettingsPart Members

AddMailMergeRecipientDataPart Overload

DocumentFormat.OpenXml.Packaging Namespace