SdtContentDocPartList Class

Document Part Gallery Structured Document Tag.When the object is serialized out as xml, its qualified name is w:docPartList.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Wordprocessing.SdtDocPartType
        DocumentFormat.OpenXml.Wordprocessing.SdtContentDocPartList

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

Syntax

'Declaration
Public Class SdtContentDocPartList _
    Inherits SdtDocPartType
'Usage
Dim instance As SdtContentDocPartList
public class SdtContentDocPartList : SdtDocPartType

Remarks

The following table lists the possible child types:

  • DocPartGallery <w:docPartGallery>

  • DocPartCategory <w:docPartCategory>

  • DocPartUnique <w:docPartUnique>

[ISO/IEC 29500-1 1st Edition]

17.5.2.12 docPartList (Document Part Gallery Structured Document Tag)

This element specifies that the parent structured document tag shall be of a document part gallery type.

This setting does not require or imply that the contents of the structured document tag shall contain only the exact contents of a document part of the specified gallery and category which is present on the current machine, it shall only be used to specify that the structured document tag is of this kind, which shall be used by an application to present the possible list of choices for insertion into the parent structured document tag.

[Example: Consider the following structured document tag:

<w:sdt>
<w:sdtPr>
…
<w:docPartList>
…
</w:docPartList>
</w:sdtPr>
…
</w:sdt>

The docPartList element in this structured document tag's properties specifies that the type of structured document tag is a document part gallery. The child elements must specify the gallery and category filters for this list, if any. end example]

Parent Elements

sdtPr (§17.5.2.38)

Child Elements

Subclause

docPartCategory (Document Part Category Filter)

§17.5.2.10

docPartGallery (Document Part Gallery Filter)

§17.5.2.11

docPartUnique (Built-In Document Part)

§17.5.2.14

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

SdtContentDocPartList Members

DocumentFormat.OpenXml.Wordprocessing Namespace