2.293.12 Style.Color

The Style.Color element specifies the foreground color of a report item. This element is optional. If this element is present, its value MUST be an RdlColor or an expression that evaluates to an RdlColor.

In RDL 2012/01, Style.Color is of type StringWithValueTypeAttribute. If the ValueType attribute is set to ThemeReference, the value MUST be the name of a theme color. If ValueType is not present or is set to "Constant", the value MUST be a value that is specified as an RdlColor.

If the Style.Color element is not present, the foreground color of the report item is interpreted as "Black", except within the ChartDataPoint and ChartSeries elements. Within these elements, the value of the Style.Color element is interpreted to be the same as those that are specified for the chart’s color palette (specified by the Chart.Palette element).

If the grandparent element of the Style.Color element is not TextRun, Textbox, Subtotal, ChartTitle, ChartLegend, ChartLegendTitle, ChartAxis, Axis, ChartAxisTitle, Title, ChartEmptyPoints, ChartDataLabel, ChartStripLine, ScaleLabels, CustomLabel, or PinLabel, the Style.Color element is ignored.

Following is the parent element of the Style.Color element.

Parent elements

Style

The following is the XML Schema definition of the Style.Color element in RDL 2003/10, RDL 2005/01, RDL 2008/01, RDL 2010/01, and RDL 2016/01.

Note  The following XSD represents RDL macro-versioned schemas only. Possible additions, identified earlier in this section, to base schema RDL 2010/01 from micro-versioned schemas RDL 2011/01, RDL 2012/01, and RDL 2013/01 are provided in sections 5.5, 5.6, and 5.7, respectively. For more information about macro- and micro-versioned schemas, see section 2.1.

 <xsd:element name="Color" type="xsd:string" minOccurs="0" />