PresentationDocument.AddPresentationPart Method
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
Creates the PresentationPart and adds it to this document.
Namespace: DocumentFormat.OpenXml.Packaging
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
Public Function AddPresentationPart As PresentationPart
'Usage
Dim instance As PresentationDocument
Dim returnValue As PresentationPart
returnValue = instance.AddPresentationPart()
public PresentationPart AddPresentationPart()
Return Value
Type: DocumentFormat.OpenXml.Packaging.PresentationPart
Returns the newly added PresentationPart.