21.4.5.7 styleDef

This element is the root tag for a style definition.

[Example:

Consider the following example of a styleDef in DiagramML:

<dgm:styleDef
xmlns:dgm="http://schemas.openxmlformats.org/drawingml/2006/diagram"
xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"
uniqueId="urn:microsoft.com/office/officeart/2005/8/quickstyle/3d1"
minVer="12.0">
  <dgm:title lang="" val="3-D Style 1"/>
  <dgm:desc lang="" val="3-D Style 1"/>
  <dgm:catLst>
    <dgm:cat type="3D" pri="11100"/>
  </dgm:catLst>
  <dgm:scene3d>
    <a:camera prst="orthographicFront"/>
    <a:lightRig rig="threePt" dir="t"/>
  </dgm:scene3d>
  <dgm:style>
  </dgm:style>
  <dgm:styleLbl name="node0">
    <dgm:scene3d>
      <a:camera prst="orthographicFront"/>
      <a:lightRig rig="flat" dir="t"/>
    </dgm:scene3d>
    <dgm:sp3d prstMaterial="flat">
      <a:bevelT w="120900" h="88900"/>
      <a:bevelB w="88900" h="31750" prst="angle"/>
    </dgm:sp3d>
    <dgm:txPr/>
    <dgm:style>
      <a:lnRef idx="0">
          <a:scrgbClr r="0" g="0" b="0"/>
      </a:lnRef>
      <a:fillRef idx="3">
          <a:scrgbClr r="0" g="0" b="0"/>
      </a:fillRef>
      <a:effectRef idx="2">
          <a:scrgbClr r="0" g="0" b="0"/>
      </a:effectRef>
      <a:fontRef idx="minor">
          <a:schemeClr val="lt1"/>
      </a:fontRef>
    </dgm:style>
  </dgm:styleLbl>
</dgm:styleDef>

In this example we see a styleDef being defined along with many properties. end example]

Attributes

uniqueId (Unique Style ID)

Unique ID that identifies a style.

[Example:

Consider the following example of a styleDef in DiagramML:

    <styleDef uniqueId="urn:quickstyle/3d1" minVer="12.0">
    </styleDef>

In this example we see the uniqueId defined to be urn:quickstyle/3d1. end example]

The possible values for this attribute are defined by the W3C XML Schema string datatype.

minVer (Minimum Version)

The minimum product version that can support this quick style.

[Example:

Consider the following example of a styleDef in DiagramML:

    <styleDef uniqueId="urn:quickstyle/3d1" minVer="12.0">
    </styleDef>

In this example we see the minVer defined to be 12.0. end example]

The possible values for this attribute are defined by the W3C XML Schema string datatype.

[Note: The W3C XML Schema definition of this element’s content model (CT_StyleDefinition) is located in A.5.3. end note]

Last updated on