Partager via


DocPart Class

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

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Wordprocessing.DocPart

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(DocPartProperties))> _
<ChildElementInfoAttribute(GetType(DocPartBody))> _
Public Class DocPart _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As DocPart
[ChildElementInfoAttribute(typeof(DocPartProperties))]
[ChildElementInfoAttribute(typeof(DocPartBody))]
public class DocPart : OpenXmlCompositeElement

Remarks

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:

<w:glossaryDocument>
<w:docParts>
<w:docPart>
…
</w:docPart>
<w:docPart>
…
</w:docPart>
</w:docParts>
</w:glossaryDocument>

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

Subclause

docPartBody (Contents of Glossary Document Entry)

§17.12.6

docPartPr (Glossary Document Entry Properties)

§17.12.7

[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

Reference

DocPart Members

DocumentFormat.OpenXml.Wordprocessing Namespace