OpenXmlPartContainer.AddExtendedPart Method (String, String, String)
Adds an extended part ( Application specific part )
Namespace: DocumentFormat.OpenXml.Packaging
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'宣言
Public Function AddExtendedPart ( _
relationshipType As String, _
contentType As String, _
targetExt As String _
) As ExtendedPart
'使用
Dim instance As OpenXmlPartContainer
Dim relationshipType As String
Dim contentType As String
Dim targetExt As String
Dim returnValue As ExtendedPart
returnValue = instance.AddExtendedPart(relationshipType, _
contentType, targetExt)
public ExtendedPart AddExtendedPart(
string relationshipType,
string contentType,
string targetExt
)
Parameters
- relationshipType
Type: System.String
The relationship type of the part.
- contentType
Type: System.String
The content type of the part.
- targetExt
Type: System.String
The desired part name extension in the package.
Return Value
Type: DocumentFormat.OpenXml.Packaging.ExtendedPart
The new ExtendedPart.