WordprocessingDocument.AddMainDocumentPart method

Creates the MainDocumentPart and add it to this document.

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

public MainDocumentPart AddMainDocumentPart()

Return value

Type: DocumentFormat.OpenXml.Packaging.MainDocumentPart
The newly added MainDocumentPart.
Show: