ThemeElements Class

Office 2010

Theme Elements.When the object is serialized out as xml, its qualified name is a:themeElements.

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

[ChildElementInfoAttribute(typeof(FontScheme))]
[ChildElementInfoAttribute(typeof(ColorScheme))]
[ChildElementInfoAttribute(typeof(FormatScheme))]
[ChildElementInfoAttribute(typeof(ExtensionList))]
public class ThemeElements : OpenXmlCompositeElement

The following table lists the possible child types:

  • ColorScheme <a:clrScheme>

  • FontScheme <a:fontScheme>

  • FormatScheme <a:fmtScheme>

  • ExtensionList <a:extLst>


[ISO/IEC 29500-1 1st Edition]

20.1.6.10 themeElements (Theme Elements)

This element defines the theme formatting options for the theme and is the workhorse of the theme. This is where the bulk of the shared theme information is contained and used by a document. This element contains the color scheme, font scheme, and format scheme elements which define the different formatting aspects of what a theme defines.

[Example: Consider the following example of a theme elements defined in DrawingML:

<themeElements>
<clrScheme name="sample">
…
</clrScheme>
  <fontScheme name="sample">
…
</fontScheme>
  <fmtScheme name="sample">
<fillStyleLst>
…
</fillStyleLst>
    <lnStyleLst>
…
</lnStyleLst>
    <effectStyleLst>
…
</effectStyleLst>
    <bgFillStyleLst>
…
</bgFillStyleLst>
</fmtScheme>
</themeElements>

In this example, we see the basic structure of how a theme elements is defined and have left out the true guts of each individual piece to save room. Each part (color scheme, font scheme, format scheme) is defined elsewhere within DrawingML. end example]

Parent Elements

theme (§20.1.6.9)

Child Elements

Subclause

clrScheme (Color Scheme)

§20.1.6.2

extLst (Extension List)

§20.1.2.2.15

fmtScheme (Format Scheme)

§20.1.4.1.14

fontScheme (Font Scheme)

§20.1.4.1.18

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

© ISO/IEC29500: 2008.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft