20.1.4.1.28 txDef
20.1.4.1.28 txDef
This element defines the default formatting which is applied to text in a document by default. The default formatting can and should be applied to the shape when it is initially inserted into a document.
[Example: Consider the following example of a text default being used within DrawingML:
<txDef>
<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>
</txDef>
In this example, we see a default text 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