ColorMap Class
Color Scheme Map.When the object is serialized out as xml, its qualified name is p:clrMap.
Inheritance Hierarchy
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Presentation.ColorMap
Namespace: DocumentFormat.OpenXml.Presentation
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
声明
<ChildElementInfoAttribute(GetType(ExtensionList))> _
Public Class ColorMap _
Inherits OpenXmlCompositeElement
用法
Dim instance As ColorMap
[ChildElementInfoAttribute(typeof(ExtensionList))]
public class ColorMap : OpenXmlCompositeElement
Remarks
The following table lists the possible child types:
- DocumentFormat.OpenXml.Drawing.ExtensionList <a:extLst>
[ISO/IEC 29500-1 第 1 个版本]
19.3.1.6 clrMap (Color Scheme Map)
This element specifies the mapping layer that transforms one color scheme definition to another. Each attribute represents a color name that can be referenced in this master, and the value is the corresponding color in the theme.
[Example: Consider the following mapping of colors that applies to a slide master:
<p:clrMap bg1="dk1" tx1="lt1" bg2="dk2" tx2="lt2" accent1="accent1" accent2="accent2" accent3="accent3" accent4="accent4" accent5="accent5" accent6="accent6" hlink="hlink" folHlink="folHlink"/>
end example]
Parent Elements |
---|
handoutMaster (§19.3.1.24); notesMaster (§19.3.1.27); sldMaster (§19.3.1.42) |
Child Elements |
Subclause |
---|---|
extLst (Extension List) |
§20.1.2.2.15 |
Attributes |
Description |
---|---|
accent1 (Accent 1) Namespace: .../drawingml/2006/main |
Specifies a color defined which is associated as the accent 1 color. The possible values for this attribute are defined by the ST_ColorSchemeIndex simple type (§20.1.10.14). |
accent2 (Accent 2) Namespace: .../drawingml/2006/main |
Specifies a color defined which is associated as the accent 2 color. The possible values for this attribute are defined by the ST_ColorSchemeIndex simple type (§20.1.10.14). |
accent3 (Accent 3) Namespace: .../drawingml/2006/main |
Specifies a color defined which is associated as the accent 3 color. The possible values for this attribute are defined by the ST_ColorSchemeIndex simple type (§20.1.10.14). |
accent4 (Accent 4) Namespace: .../drawingml/2006/main |
Specifies a color defined which is associated as the accent 4 color. The possible values for this attribute are defined by the ST_ColorSchemeIndex simple type (§20.1.10.14). |
accent5 (Accent 5) Namespace: .../drawingml/2006/main |
Specifies a color defined which is associated as the accent 5 color. The possible values for this attribute are defined by the ST_ColorSchemeIndex simple type (§20.1.10.14). |
accent6 (Accent 6) Namespace: .../drawingml/2006/main |
Specifies a color defined which is associated as the accent 6 color. The possible values for this attribute are defined by the ST_ColorSchemeIndex simple type (§20.1.10.14). |
bg1 (Background 1) Namespace: .../drawingml/2006/main |
A color defined which is associated as the first background color. The possible values for this attribute are defined by the ST_ColorSchemeIndex simple type (§20.1.10.14). |
bg2 (Background 2) Namespace: .../drawingml/2006/main |
Specifies a color defined which is associated as the second background color. The possible values for this attribute are defined by the ST_ColorSchemeIndex simple type (§20.1.10.14). |
folHlink (Followed Hyperlink) Namespace: .../drawingml/2006/main |
Specifies a color defined which is associated as the color for a followed hyperlink. The possible values for this attribute are defined by the ST_ColorSchemeIndex simple type (§20.1.10.14). |
hlink (Hyperlink) Namespace: .../drawingml/2006/main |
Specifies a color defined which is associated as the color for a hyperlink. The possible values for this attribute are defined by the ST_ColorSchemeIndex simple type (§20.1.10.14). |
tx1 (Text 1) Namespace: .../drawingml/2006/main |
Specifies a color defined which is associated as the first text color. The possible values for this attribute are defined by the ST_ColorSchemeIndex simple type (§20.1.10.14). |
tx2 (Text 2) Namespace: .../drawingml/2006/main |
Specifies a color defined which is associated as the second text color. The possible values for this attribute are defined by the ST_ColorSchemeIndex simple type (§20.1.10.14). |
[Note: The W3C XML Schema definition of this element's content model (CT_ColorMapping) is located in §A.4.1. end note]
© ISO/IEC29500: 2008. 以上摘要已经由 Microsoft(和/或其代理公司)从英语翻译为简体中文,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.