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

声明
<ChildElementInfoAttribute(GetType(DocPartProperties))> _
<ChildElementInfoAttribute(GetType(DocPartBody))> _
Public Class DocPart _
    Inherits OpenXmlCompositeElement
用法
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 第 1 个版本]

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. 以上摘要已经由 Microsoft(和/或其代理公司)从英语翻译为简体中文,ISO 对此翻译不承担任何责任。

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