DocPartProperties Class

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

Inheritance Hierarchy

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

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(Category))> _
<ChildElementInfoAttribute(GetType(DocPartTypes))> _
<ChildElementInfoAttribute(GetType(Behaviors))> _
<ChildElementInfoAttribute(GetType(DocPartId))> _
<ChildElementInfoAttribute(GetType(StyleId))> _
<ChildElementInfoAttribute(GetType(DocPartName))> _
<ChildElementInfoAttribute(GetType(Description))> _
Public Class DocPartProperties _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As DocPartProperties
[ChildElementInfoAttribute(typeof(Category))]
[ChildElementInfoAttribute(typeof(DocPartTypes))]
[ChildElementInfoAttribute(typeof(Behaviors))]
[ChildElementInfoAttribute(typeof(DocPartId))]
[ChildElementInfoAttribute(typeof(StyleId))]
[ChildElementInfoAttribute(typeof(DocPartName))]
[ChildElementInfoAttribute(typeof(Description))]
public class DocPartProperties : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • DocPartName <w:name>

  • StyleId <w:style>

  • Category <w:category>

  • DocPartTypes <w:types>

  • Behaviors <w:behaviors>

  • Description <w:description>

  • DocPartId <w:guid>

[ISO/IEC 29500-1 1st Edition]

17.12.7 docPartPr (Glossary Document Entry Properties)

This element specifies the set of properties which shall be applied to the parent glossary document entry. These properties define its name, categorization, and behaviors.

[Example: Consider the WordprocessingML fragment for a glossary document entry containing a single run, defined as follows:

<w:docPart>
<w:docPartPr>
<w:name w:val="Sample Entry" />
…
</w:docPartPr>
…
</w:docPart>

The docPartPr element specifies the set of properties which have been specified for the parent glossary document entry, the only one visible above being the entry's name of Sample Entry. end example]

Parent Elements

docPart (§17.12.5)

Child Elements

Subclause

behaviors (Entry Insertion Behaviors)

§17.12.2

category (Entry Categorization)

§17.12.3

description (Description for Entry)

§17.12.4

guid (Entry ID)

§17.12.11

name (Entry Name)

§17.12.13

style (Associated Paragraph Style Name)

§17.12.14

types (Entry Types)

§17.12.16

[Note: The W3C XML Schema definition of this element’s content model (CT_DocPartPr) 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

DocPartProperties Members

DocumentFormat.OpenXml.Wordprocessing Namespace