Share via


ColorData Class

Color Transform Sample Data.When the object is serialized out as xml, its qualified name is dgm:clrData.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Drawing.Diagrams.SampleDataType
        DocumentFormat.OpenXml.Drawing.Diagrams.ColorData

Namespace:  DocumentFormat.OpenXml.Drawing.Diagrams
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
Public Class ColorData _
    Inherits SampleDataType
'Usage
Dim instance As ColorData
public class ColorData : SampleDataType

Remarks

The following table lists the possible child types:

  • DataModel <dgm:dataModel>

[ISO/IEC 29500-1 1st Edition]

21.4.2.7 clrData (Color Transform Sample Data)

This element defines the sample data that is to be used in the user interface controls regarding displaying color transforms for a given diagram. This sample data predefines a data model to be combined with a layout definition in order to create a diagram which a color transform can be applied and displayed to the user as an example of the color transform.

[Example: Consider the following example of a clrData element in a DrawingML diagram:

<clrData>
<dataModel>
<ptLst>
<pt modelId="0" type="doc"/>
<pt modelId="1"/>
<pt modelId="2"/>
<pt modelId="3"/>
<pt modelId="4"/>
<pt modelId="5"/>
<pt modelId="6"/>
</ptLst>
<cxnLst>
<cxn modelId="7" srcId="0" destId="1" srcOrd="0" destOrd="0"/>
<cxn modelId="8" srcId="0" destId="2" srcOrd="1" destOrd="0"/>
<cxn modelId="9" srcId="0" destId="3" srcOrd="2" destOrd="0"/>
<cxn modelId="10" srcId="0" destId="4" srcOrd="3" destOrd="0"/>
<cxn modelId="11" srcId="0" destId="5" srcOrd="4" destOrd="0"/>
<cxn modelId="12" srcId="0" destId="6" srcOrd="5" destOrd="0"/>
</cxnLst>
<bg/>
<whole/>
</dataModel>
</clrData>

In this example we define 6 points which all connect back to a seventh document type point. 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.

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

ColorData Members

DocumentFormat.OpenXml.Drawing.Diagrams Namespace