Share via


HeaderPart.AddAlternativeFormatImportPart Method (String) (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 AlternativeFormatImportPart to the HeaderPart

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

Syntax

'Declaration
Public Function AddAlternativeFormatImportPart ( _
    contentType As String _
) As AlternativeFormatImportPart
'Usage
Dim instance As HeaderPart
Dim contentType As String
Dim returnValue As AlternativeFormatImportPart

returnValue = instance.AddAlternativeFormatImportPart(contentType)
public AlternativeFormatImportPart AddAlternativeFormatImportPart (
    string contentType
)

Parameters

  • contentType
    the content type of the AlternativeFormatImportPart

Return Value

The newly added part

See Also

Reference

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