Share via


OpenXmlPartContainer.DeletePart Method (OpenXmlPart) (Microsoft.Office.DocumentFormat.OpenXml.Packaging)

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Delete a specified part in the package root layer.

Namespace: Microsoft.Office.DocumentFormat.OpenXml.Packaging
Assembly: Microsoft.Office.DocumentFormat.OpenXml (in microsoft.office.documentformat.openxml.dll)

Syntax

'Declaration
Public Function DeletePart ( _
    part As OpenXmlPart _
) As Boolean
'Usage
Dim instance As OpenXmlPartContainer
Dim part As OpenXmlPart
Dim returnValue As Boolean

returnValue = instance.DeletePart(part)
public bool DeletePart (
    OpenXmlPart part
)

Parameters

  • part
    The part to be deleted.

See Also

Reference

OpenXmlPartContainer Class
OpenXmlPartContainer Members
Microsoft.Office.DocumentFormat.OpenXml.Packaging Namespace