ColorMostRecentlyUsed Class

Color MRU.When the object is serialized out as xml, its qualified name is p:clrMru.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Presentation.ColorMostRecentlyUsed

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

Syntax

声明
<ChildElementInfoAttribute(GetType(SystemColor))> _
<ChildElementInfoAttribute(GetType(RgbColorModelHex))> _
<ChildElementInfoAttribute(GetType(RgbColorModelPercentage))> _
<ChildElementInfoAttribute(GetType(HslColor))> _
<ChildElementInfoAttribute(GetType(SchemeColor))> _
<ChildElementInfoAttribute(GetType(PresetColor))> _
Public Class ColorMostRecentlyUsed _
    Inherits OpenXmlCompositeElement
用法
Dim instance As ColorMostRecentlyUsed
[ChildElementInfoAttribute(typeof(SystemColor))]
[ChildElementInfoAttribute(typeof(RgbColorModelHex))]
[ChildElementInfoAttribute(typeof(RgbColorModelPercentage))]
[ChildElementInfoAttribute(typeof(HslColor))]
[ChildElementInfoAttribute(typeof(SchemeColor))]
[ChildElementInfoAttribute(typeof(PresetColor))]
public class ColorMostRecentlyUsed : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • DocumentFormat.OpenXml.Drawing.RgbColorModelPercentage <a:scrgbClr>

  • DocumentFormat.OpenXml.Drawing.RgbColorModelHex <a:srgbClr>

  • DocumentFormat.OpenXml.Drawing.HslColor <a:hslClr>

  • DocumentFormat.OpenXml.Drawing.SystemColor <a:sysClr>

  • DocumentFormat.OpenXml.Drawing.SchemeColor <a:schemeClr>

  • DocumentFormat.OpenXml.Drawing.PresetColor <a:prstClr>

[ISO/IEC 29500-1 第 1 个版本]

19.2.1.4 clrMru (Color MRU)

This specifies the most recently used user-selected colors within the presentation. This list contains custom user-selected colors outside the presentation's theme colors, enabling the application to expose these additional color choices for easy reuse. The first item in the list is the most recently used color.

[Example: Consider the following presentation with two user-selected colors in the color MRU list.

<p:presentationPr xmlns:a="" xmlns:r="" xmlns:p="">
  …
  <p:clrMru>
    <a:srgbClr val="5361EB"/>
    <a:srgbClr val="CCECFF"/>
  </p:clrMru>
  …
</p:presentationPr>

end example]

Parent Elements

presentationPr (§19.2.1.27)

Child Elements

Subclause

hslClr (Hue, Saturation, Luminance Color Model)

§20.1.2.3.13

prstClr (Preset Color)

§20.1.2.3.22

schemeClr (Scheme Color)

§20.1.2.3.29

scrgbClr (RGB Color Model - Percentage Variant)

§20.1.2.3.30

srgbClr (RGB Color Model - Hex Variant)

§20.1.2.3.32

sysClr (System Color)

§20.1.2.3.33

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

See Also

Reference

ColorMostRecentlyUsed Members

DocumentFormat.OpenXml.Presentation Namespace