Freigeben über


MainDocumentPart.AddCustomXmlPart-Methode (CustomXmlPartType)

Adds a CustomXmlPart to the MainDocumentPart.

Namespace:  DocumentFormat.OpenXml.Packaging
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
Public Function AddCustomXmlPart ( _
    partType As CustomXmlPartType _
) As CustomXmlPart
'Usage
Dim instance As MainDocumentPart
Dim partType As CustomXmlPartType
Dim returnValue As CustomXmlPart

returnValue = instance.AddCustomXmlPart(partType)
public CustomXmlPart AddCustomXmlPart(
    CustomXmlPartType partType
)

Parameter

Rückgabewert

Typ: DocumentFormat.OpenXml.Packaging.CustomXmlPart
The newly added part.

Siehe auch

Referenz

MainDocumentPart Klasse

MainDocumentPart-Member

AddCustomXmlPart Überladung

DocumentFormat.OpenXml.Packaging-Namespace