SdtContentDocPartObject Class
Built-In Document Part Structured Document Tag.When the object is serialized out as xml, its qualified name is w:docPartObj.
Inheritance Hierarchy
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Wordprocessing.SdtDocPartType
DocumentFormat.OpenXml.Wordprocessing.SdtContentDocPartObject
Namespace: DocumentFormat.OpenXml.Wordprocessing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
声明
Public Class SdtContentDocPartObject _
Inherits SdtDocPartType
用法
Dim instance As SdtContentDocPartObject
public class SdtContentDocPartObject : SdtDocPartType
Remarks
The following table lists the possible child types:
DocPartGallery <w:docPartGallery>
DocPartCategory <w:docPartCategory>
DocPartUnique <w:docPartUnique>
[ISO/IEC 29500-1 第 1 个版本]
17.5.2.13 docPartObj (Built-In Document Part Structured Document Tag)
This element specifies that the parent structured document tag shall be of a document part 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.
This element differs from the docPartList element (§17.5.2.12) in that it can be used to semantically tag a set of block-level objects in a WordprocessingML document without requiring the ability to specify a category and gallery of objects which can be swapped with it via the user interface.
[Example: Consider the following structured document tag:
<w:sdt>
<w:sdtPr>
…
<w:docPartObj>
…
</w:docPartObj>
</w:sdtPr>
…
</w:sdt>
The docPartObj element in this structured document tag's properties specify that the type of structured document tag is a document part. The child elements must specify the gallery and category semantics for this part, 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. 以上摘要已经由 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.