Freigeben über


ThemeElements-Klasse

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

Vererbungshierarchie

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Drawing.ThemeElements

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(FontScheme))> _
<ChildElementInfoAttribute(GetType(ColorScheme))> _
<ChildElementInfoAttribute(GetType(FormatScheme))> _
<ChildElementInfoAttribute(GetType(ExtensionList))> _
Public Class ThemeElements _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As ThemeElements
[ChildElementInfoAttribute(typeof(FontScheme))]
[ChildElementInfoAttribute(typeof(ColorScheme))]
[ChildElementInfoAttribute(typeof(FormatScheme))]
[ChildElementInfoAttribute(typeof(ExtensionList))]
public class ThemeElements : OpenXmlCompositeElement

Hinweise

The following table lists the possible child types:

  • ColorScheme <a:clrScheme>

  • FontScheme <a:fontScheme>

  • FormatScheme <a:fmtScheme>

  • ExtensionList <a:extLst>

[ISO/IEC 29500-1 1. Ausgabe]

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. Die oben aufgeführten Textauszüge wurden von Microsoft (und/oder den Microsoft-Vendoren) von Englisch nach Deutsch übersetzt, und im Rahmen von ISO wird keinerlei Verantwortung für diese Übersetzungen übernommen.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Siehe auch

Referenz

ThemeElements-Member

DocumentFormat.OpenXml.Drawing-Namespace