WordprocessingDocument.MainDocumentPart Property

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Gets the MainDocumentPart of the Wordprocessingdocument.

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

Syntax

'Declaration
Public ReadOnly Property MainDocumentPart As MainDocumentPart
    Get
'Usage
Dim instance As WordprocessingDocument
Dim value As MainDocumentPart

value = instance.MainDocumentPart
public MainDocumentPart MainDocumentPart { get; }

Property Value

Type: DocumentFormat.OpenXml.Packaging.MainDocumentPart

See Also

Reference

WordprocessingDocument Class

WordprocessingDocument Members

DocumentFormat.OpenXml.Packaging Namespace