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.MainDocumentPart
Public Function AddMainDocumentPart () As MainDocumentPart
Returns
The newly added MainDocumentPart.