SampleData-Klasse
Sample Data.When the object is serialized out as xml, its qualified name is dgm:sampData.
Vererbungshierarchie
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Drawing.Diagrams.SampleDataType
DocumentFormat.OpenXml.Drawing.Diagrams.SampleData
Namespace: DocumentFormat.OpenXml.Drawing.Diagrams
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
Public Class SampleData _
Inherits SampleDataType
'Usage
Dim instance As SampleData
public class SampleData : SampleDataType
Hinweise
The following table lists the possible child types:
- DataModel <dgm:dataModel>
[ISO/IEC 29500-1 1. Ausgabe]
21.4.2.26 sampData (Sample Data)
This element defines the sample 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 all of the available diagrams to a user.
[Example: Consider the following example of a sampData element within a DrawingML diagram:
<sampData>
<dataModel>
<ptLst>
<pt modelId="0" type="doc"/>
<pt modelId="1">
<prSet phldr="1"/>
</pt>
<pt modelId="2">
<prSet phldr="1"/>
</pt>
<pt modelId="3">
<prSet phldr="1"/>
</pt>
<pt modelId="4">
<prSet phldr="1"/>
</pt>
<pt modelId="5">
<prSet phldr="1"/>
</pt>
</ptLst>
<cxnLst>
<cxn modelId="6" srcId="0" destId="1" srcOrd="0" destOrd="0"/>
<cxn modelId="7" srcId="0" destId="2" srcOrd="1" destOrd="0"/>
<cxn modelId="8" srcId="0" destId="3" srcOrd="2" destOrd="0"/>
<cxn modelId="9" srcId="0" destId="4" srcOrd="3" destOrd="0"/>
<cxn modelId="10" srcId="0" destId="5" srcOrd="4" destOrd="0"/>
</cxnLst>
<bg/>
<whole/>
</dataModel>
</sampData>
In this example we define the sample data to consist of five nodes all attached to a document point type node. When displayed, this diagram shows five shapes in the diagram. 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. Die oben aufgeführten Textauszüge wurden von Microsoft (und/oder den Microsoft-Vendoren) von Englisch nach Deutsch übersetzt, und im Rahmen von ISO wird keinerlei Verantwortung für diese Übersetzungen übernommen.
Threadsicherheit
Alle öffentlichen static (Shared in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.