WordprocessingDocument.ChangeDocumentType(WordprocessingDocumentType) Method

Definition

Changes the document type.

public void ChangeDocumentType (DocumentFormat.OpenXml.WordprocessingDocumentType newType);
member this.ChangeDocumentType : DocumentFormat.OpenXml.WordprocessingDocumentType -> unit
Public Sub ChangeDocumentType (newType As WordprocessingDocumentType)

Parameters

newType
WordprocessingDocumentType

The new type of the document.

Remarks

The MainDocumentPart will be changed.

Applies to