2.293.1 Style.BackgroundColor

The Style.BackgroundColor element specifies the color of the background 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.BackgroundColor 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.BackgroundColor element is not present, the background of the report item is interpreted as being transparent. If the grandparent element of the Style.BackgroundColor element is Line, Paragraph, TextRun, SubReport, Image, ChartAxis, Axis, ChartAxisTitle, Title, ChartAxisScaleBreak, ScaleLabels, CustomLabel, or PinLabel, the Style.BackgroundColor element is ignored.

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

Parent elements

Style

The following is the XML Schema definition of the Style.BackgroundColor 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="BackgroundColor" type="xsd:string" minOccurs="0" />