Share via


PresentationDocument.AddPresentationPart Method

Creates the PresentationPart and add 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
The newly added PresentationPart.

See Also

Reference

PresentationDocument Class

PresentationDocument Members

DocumentFormat.OpenXml.Packaging Namespace