This documentation is archived and is not being maintained.

ColorValue Class

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

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

public class ColorValue : ColorType

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 1st Edition]

19.5.27 clrVal (Color Value)

This element describes the color variant. This is used to specify a color that is to be used for animating the color property of an object.                                            

[Example: Consider trying to emphasize text within a shape by changing the color its font.

  <p:cBhvr override="childStyle">
      <a:schemeClr val="accent2"/>

end example]

Parent Elements

progress (§19.5.57); to (§19.5.89); val (§19.5.92)

Child Elements


hslClr (Hue, Saturation, Luminance Color Model)


prstClr (Preset Color)


schemeClr (Scheme Color)


scrgbClr (RGB Color Model - Percentage Variant)


srgbClr (RGB Color Model - Hex Variant)


sysClr (System Color)


[Note: The W3C XML Schema definition of this element’s content model (CT_Color) is located in §A.4.1. end note]

© ISO/IEC29500: 2008.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.