Share via


WorksheetPart.AddEmbeddedPackagePart Method (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.]

Add a EmbeddedPackagePart to the WorksheetPart

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

Syntax

'Declaration
Public Function AddEmbeddedPackagePart ( _
    contentType As String _
) As EmbeddedPackagePart
'Usage
Dim instance As WorksheetPart
Dim contentType As String
Dim returnValue As EmbeddedPackagePart

returnValue = instance.AddEmbeddedPackagePart(contentType)
public EmbeddedPackagePart AddEmbeddedPackagePart (
    string contentType
)

Parameters

  • contentType
    the content type of the EmbeddedPackagePart

Return Value

The newly added part

See Also

Reference

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