ThemeElements Class

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)

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] 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:

<clrScheme name="sample">
  <fontScheme name="sample">
  <fmtScheme name="sample">

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 (§

Child Elements


clrScheme (Color Scheme)


extLst (Extension List)


fmtScheme (Format Scheme)


fontScheme (Font Scheme)


[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

© 2015 Microsoft