Export (0) Print
Expand All

WordprocessingDocument.ChangeDocumentType method

Changes the document type.

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

public void ChangeDocumentType(
	WordprocessingDocumentType newType
)

Parameters

newType
Type: DocumentFormat.OpenXml.WordprocessingDocumentType

The new type of the document.

The MainDocumentPart will be changed.

Community Additions

Show:
© 2014 Microsoft