WordprocessingDocument.ChangeDocumentType Method

Changes the document type.

Namespace:  DocumentFormat.OpenXml.Packaging
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
Public Sub ChangeDocumentType ( _
    newType As WordprocessingDocumentType _
)
'Usage
Dim instance As WordprocessingDocument
Dim newType As WordprocessingDocumentType

instance.ChangeDocumentType(newType)
public void ChangeDocumentType(
    WordprocessingDocumentType newType
)

Parameters

Remarks

The MainDocumentPart will be changed.

See Also

Reference

WordprocessingDocument Class

WordprocessingDocument Members

DocumentFormat.OpenXml.Packaging Namespace