StyleData Class
Style Data.When the object is serialized out as xml, its qualified name is dgm:styleData.
Inheritance Hierarchy
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Drawing.Diagrams.SampleDataType
DocumentFormat.OpenXml.Drawing.Diagrams.StyleData
Namespace: DocumentFormat.OpenXml.Drawing.Diagrams
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
声明
Public Class StyleData _
Inherits SampleDataType
用法
Dim instance As StyleData
public class StyleData : SampleDataType
Remarks
The following table lists the possible child types:
- DataModel <dgm:dataModel>
[ISO/IEC 29500-1 第 1 个版本]
21.4.2.29 styleData (Style Data)
This element defines the style data model which is used to pre-populate a diagram with placeholder data in order for the diagram to display itself in the user interface which shows a quick style applied to the diagram.
[Example: Consider the following example of a styleData being used within a DrawingML diagram:
<styleData>
<dataModel>
<ptLst>
<pt modelId="0" type="doc"/>
<pt modelId="1"/>
<pt modelId="2"/>
</ptLst>
<cxnLst>
<cxn modelId="3" srcId="0" destId="1" srcOrd="0" destOrd="0"/>
<cxn modelId="4" srcId="0" destId="2" srcOrd="1" destOrd="0"/>
</cxnLst>
<bg/>
<whole/>
</dataModel>
</styleData>
In this example we define a data model which has only two nodes which are shown in the user interface when a layout definition is combined with this data model*. end example*]
Parent Elements |
---|
layoutDef (§21.4.2.16) |
Child Elements |
Subclause |
---|---|
dataModel (Data Model) |
§21.4.2.10 |
Attributes |
Description |
---|---|
useDef (Use Default) |
If the value of this attribute is true, the data model defined in the clrData element is ignored and a default data model is used instead. The possible values for this attribute are defined by the W3C XML Schema boolean datatype. |
[Note: The W3C XML Schema definition of this element's content model (CT_SampleData) is located in §A.5.3. 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.