DocPart Class

Glossary Document Entry.When the object is serialized out as xml, its qualified name is w:docPart.

Inheritance Hierarchy


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


<ChildElementInfoAttribute(GetType(DocPartProperties))> _
<ChildElementInfoAttribute(GetType(DocPartBody))> _
Public Class DocPart _
    Inherits OpenXmlCompositeElement
Dim instance As DocPart
public class DocPart : OpenXmlCompositeElement


The following table lists the possible child types:

  • DocPartProperties <w:docPartPr>

  • DocPartBody <w:docPartBody>

[ISO/IEC 29500-1 1st Edition]

17.12.5 docPart (Glossary Document Entry)

This element specifies the details for a single glossary document entry contained in the document. This glossary document entry can consist of one or both of the following:

  • The glossary document entry's properties, which define its name, categorization, and behaviors

  • The glossary document entry's contents, which consists of one or more block-level elements of WordprocessingML content

Each of these two components is specified by one of the child elements of this element, as seen in the child elements table below.

[Example: Consider the following definition for the contents of a Glossary Document part within a WordprocessingML document:


The docPart element uniquely defines one glossary document entry within the glossary document part, therefore there are two unique entries stored in the current example of a glossary document part. end example]

Parent Elements

docParts (§17.12.8)

Child Elements


docPartBody (Contents of Glossary Document Entry)


docPartPr (Glossary Document Entry Properties)


[Note: The W3C XML Schema definition of this element’s content model (CT_DocPart) is located in §A.1. end note]

© ISO/IEC29500: 2008.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also


DocPart Members

DocumentFormat.OpenXml.Wordprocessing Namespace