次の方法で共有


Theme Class

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

Inheritance Hierarchy

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

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

Remarks

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 初版]

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. 上記の引用はマイクロソフト (またはその代理) によって英語から日本語に翻訳されたものであり、ISO はこうした翻訳に対する責任を一切負いません。

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.

See Also

Reference

Theme Members

DocumentFormat.OpenXml.Drawing Namespace