20.1.4.1.27 spDef

This element defines the formatting that is associated with the default shape. The default formatting can be applied to a shape when it is initially inserted into a document.

[Example: Consider the following example of a shape default being used within DrawingML:

<spDef>
  <spPr>
    <solidFill>
      <schemeClr val="accent2">
        <shade val="75000"/>
      </schemeClr>
    </solidFill>
  </spPr>
  <bodyPr rtlCol="0" anchor="ctr"/>
  <lstStyle>
    <defPPr algn="ctr">
      <defRPr/>
    </defPPr>
  </lstStyle>
  <style>
    <lnRef idx="1">
      <schemeClr val="accent1"/>
    </lnRef>
    <fillRef idx="2">
      <schemeClr val="accent1"/>
    </fillRef>
    <effectRef idx="1">
      <schemeClr val="accent1"/>
    </effectRef>
    <fontRef idx="minor">
      <schemeClr val="dk1"/>
    </fontRef>
  </style>
</spDef>

In this example, we see a default shape which references a certain themed fill, line, effect, and font along with an override fill to these. end example]

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

Last updated on