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
- newType
Type: DocumentFormat.OpenXml.WordprocessingDocumentType
The new type of the document.
Remarks
The MainDocumentPart will be changed.