WordprocessingDocument.AddMainDocumentPart Method

Definition

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.

Applies to