ColorScale Class

Color Scale.When the object is serialized out as xml, its qualified name is x:colorScale.

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

public class ColorScale : OpenXmlCompositeElement

The following table lists the possible child types:

  • ConditionalFormatValueObject <x:cfvo>

  • Color <x:color>

[ISO/IEC 29500-1 1st Edition] colorScale (Color Scale)

Describes a gradated color scale in this conditional formatting rule.


<cfvo type="min" val="0"/>
<cfvo type="max" val="0"/>
<color theme="5"/>
<color rgb="FFFFEF9C"/>

end example]

Parent Elements

cfRule (§

Child Elements


cfvo (Conditional Format Value Object)


color (Data Bar Color)


[Note: The W3C XML Schema definition of this element’s content model (CT_ColorScale) is located in §A.2. 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.