DocPart class

Office 2013 and later

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

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

public class DocPart : OpenXmlCompositeElement

[ISO/IEC 29500-1 1st Edition]

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:

      …    </w:docPart>
      …    </w:docPart>

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.

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