WordprocessingDocument.AddMainDocumentPart Method     
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates the MainDocumentPart and add it to this document.
public DocumentFormat.OpenXml.Packaging.MainDocumentPart AddMainDocumentPart();member this.AddMainDocumentPart : unit -> DocumentFormat.OpenXml.Packaging.MainDocumentPartPublic Function AddMainDocumentPart () As MainDocumentPartReturns
The newly added MainDocumentPart.