Freigeben über


WorkbookPart.AddCustomXmlPart-Methode (String)

Adds a CustomXmlPart to the WorkbookPart.

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

Syntax

'Declaration
Public Function AddCustomXmlPart ( _
    contentType As String _
) As CustomXmlPart
'Usage
Dim instance As WorkbookPart
Dim contentType As String
Dim returnValue As CustomXmlPart

returnValue = instance.AddCustomXmlPart(contentType)
public CustomXmlPart AddCustomXmlPart(
    string contentType
)

Parameter

  • contentType
    Typ: System.String
    the content type of the CustomXmlPart.

Rückgabewert

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

Siehe auch

Referenz

WorkbookPart Klasse

WorkbookPart-Member

AddCustomXmlPart Überladung

DocumentFormat.OpenXml.Packaging-Namespace