Freigeben über


Theme-Klasse

Theme. It is the root element of ThemePart.When the object is serialized out as xml, its qualified name is a:theme.

Vererbungshierarchie

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.OpenXmlPartRootElement
        DocumentFormat.OpenXml.Drawing.Theme

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(ThemeElements))> _
<ChildElementInfoAttribute(GetType(ObjectDefaults))> _
<ChildElementInfoAttribute(GetType(ExtraColorSchemeList))> _
<ChildElementInfoAttribute(GetType(CustomColorList))> _
<ChildElementInfoAttribute(GetType(ExtensionList))> _
Public Class Theme _
    Inherits OpenXmlPartRootElement
'Usage
Dim instance As Theme
[ChildElementInfoAttribute(typeof(ThemeElements))]
[ChildElementInfoAttribute(typeof(ObjectDefaults))]
[ChildElementInfoAttribute(typeof(ExtraColorSchemeList))]
[ChildElementInfoAttribute(typeof(CustomColorList))]
[ChildElementInfoAttribute(typeof(ExtensionList))]
public class Theme : OpenXmlPartRootElement

Hinweise

The following table lists the possible child types:

  • ThemeElements <a:themeElements>

  • ObjectDefaults <a:objectDefaults>

  • ExtraColorSchemeList <a:extraClrSchemeLst>

  • CustomColorList <a:custClrLst>

  • ExtensionList <a:extLst>

[ISO/IEC 29500-1 1. Ausgabe]

20.1.6.9 theme (Theme)

This element defines the root level complex type associated with a shared style sheet (or theme). This element holds all the different formatting options available to a document through a theme and defines the overall look and feel of the document when themed objects are used within the document.

[Example: Consider the following image as an example of different themes in use applied to a presentation:

DocumentFormat.OpenXml.Drawing.Theme-image001

In this example, we see how a theme can affect font, colors, backgrounds, fills, and effects for different objects in a presentation. end example]

Parent Elements

Root element of DrawingML Theme part

Child Elements

Subclause

custClrLst (Custom Color List)

§20.1.6.3

extLst (Extension List)

§20.1.2.2.15

extraClrSchemeLst (Extra Color Scheme List)

§20.1.6.5

objectDefaults (Object Defaults)

§20.1.6.7

themeElements (Theme Elements)

§20.1.6.10

Attributes

Description

name (Name)

Specifies the name given to the theme.

The possible values for this attribute are defined by the W3C XML Schema string datatype.

[Note: The W3C XML Schema definition of this element's content model (CT_OfficeStyleSheet) 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

Theme-Member

DocumentFormat.OpenXml.Drawing-Namespace