Поделиться через


PresentationPart.AddCustomXmlPart Method (CustomXmlPartType, String)

Adds a CustomXmlPart to the PresentationPart.

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

Syntax

'Декларация
Public Function AddCustomXmlPart ( _
    partType As CustomXmlPartType, _
    id As String _
) As CustomXmlPart
'Применение
Dim instance As PresentationPart
Dim partType As CustomXmlPartType
Dim id As String
Dim returnValue As CustomXmlPart

returnValue = instance.AddCustomXmlPart(partType, _
    id)
public CustomXmlPart AddCustomXmlPart(
    CustomXmlPartType partType,
    string id
)

Parameters

Return Value

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

See Also

Reference

PresentationPart Class

PresentationPart Members

AddCustomXmlPart Overload

DocumentFormat.OpenXml.Packaging Namespace