SdtContentDocPartList class

Office 2013 and later

Defines the SdtContentDocPartList Class. When the object is serialized out as xml, its qualified name is w:docPartList.

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

public class SdtContentDocPartList : SdtDocPartType

[ISO/IEC 29500-1 1st Edition]

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.

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