TextDefault Class
Text Default.When the object is serialized out as xml, its qualified name is a:txDef.
Inheritance Hierarchy
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Drawing.DefaultShapeDefinitionType
DocumentFormat.OpenXml.Drawing.TextDefault
Namespace: DocumentFormat.OpenXml.Drawing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaración
Public Class TextDefault _
Inherits DefaultShapeDefinitionType
'Uso
Dim instance As TextDefault
public class TextDefault : DefaultShapeDefinitionType
Remarks
The following table lists the possible child types:
ShapeProperties <a:spPr>
BodyProperties <a:bodyPr>
ListStyle <a:lstStyle>
ShapeStyle <a:style>
ExtensionList <a:extLst>
[ISO/IEC 29500-1 1ª edición]
20.1.4.1.28 txDef (Text Default)
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]
Parent Elements |
---|
objectDefaults (§20.1.6.7) |
Child Elements |
Subclause |
---|---|
bodyPr (Body Properties) |
§21.1.2.1.1 |
extLst (Extension List) |
§20.1.2.2.15 |
lstStyle (Text List Styles) |
§21.1.2.4.12 |
spPr (Shape Properties) |
§20.1.2.2.35 |
style (Shape Style) |
§20.1.2.2.37 |
[Note: The W3C XML Schema definition of this element's content model (CT_DefaultShapeDefinition) is located in §A.4.1. end note]
© ISO/IEC29500: 2008. Los extractos anteriores han sido traducidos del inglés al español por Microsoft (o algunos de sus agentes) e ISO no asume ningún tipo de responsabilidad por dichas traducciones.
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.