2.293 Style

The Style element specifies appearance information for a report item.

The following are the parent and child elements of the Style element.

Parent elements

Line

Rectangle

Textbox

Paragraph

TextRun

Image

SubReport

Tablix

Chart

Body

PageSection

Page

ChartAxis

ChartBorderSkin

ChartTitle

ChartLegend

ChartLegendTitle

ChartArea

ChartAxisTitle

ChartAxisScaleBreak

ChartSeries

ChartDataPoint

ChartEmptyPoints

ChartDataLabel

ChartMarker

ChartGridLines

ChartTickMarks

ChartStripLine

LinearGauge

RadialGauge

GaugePanel

LinearPointer

RadialPointer

ScaleRange

LinearScale

RadialScale

Thermometer

PointerCap

ScaleLabels

CustomLabel

TickMarkStyle

GaugeTickMarks

ScalePin

PinLabel

BackFrame

FrameBackground

ChartLegendColumn

ChartLegendColumnHeader

ChartLegendCustomItem

ChartLegendCustomItemCell

Axis

DataLabel

DataPoint

MajorGridLines

Marker

MinorGridLines

PlotArea

Title

GaugeLabel

NumericIndicator

StateIndicator

IndicatorState

CustomReportItem

List

Matrix

Table

Subtotal

Map

MapBorderSkin

MapColorScale

MapColorScaleTitle

MapDistanceScale

MapLegend

MapLegendTitle

MapLineTemplate

MapMarkerTemplate

MapPolygonTemplate

MapTitle

MapViewport

Child elements

Style.BackgroundColor

Style.BackgroundGradientEndColor

Style.BackgroundGradientType

Style.BackgroundHatchType

Style.BackgroundImage

Style.Border

Style.BottomBorder

Style.Calendar

Style.Color

Style.Direction

Style.FontFamily

Style.FontSize

Style.FontStyle

Style.FontWeight

Style.Format

Style.Language

Style.LeftBorder

Style.LineHeight

Style.NumeralLanguage

Style.NumeralVariant

Style.PaddingBottom

Style.PaddingLeft

Style.PaddingRight

Style.PaddingTop

Style.RightBorder

Style.ShadowColor

Style.ShadowOffset

Style.TextAlign

Style.TextDecoration

Style.TextEffect

Style.TopBorder

Style.VerticalAlign

Style.WritingMode

Style.UnicodeBiDi

Style.BorderColor

Style.BorderStyle

Style.BorderWidth

Applies to RDL 2013/01

Child elements

Style.CurrencyLanguage

The following is the XML Schema definition of the Style element in RDL 2003/10 and RDL 2005/01.

 <xsd:complexType name="StyleType">
   <xsd:choice minOccurs="0" maxOccurs="unbounded">
     <xsd:element name="BorderColor" type="BorderColorStyleWidthType" minOccurs="0" />
     <xsd:element name="BorderStyle" type="BorderColorStyleWidthType" minOccurs="0" />
     <xsd:element name="BorderWidth" type="BorderColorStyleWidthType" minOccurs="0" />
     <xsd:element name="BackgroundColor" type="xsd:string" minOccurs="0" />
     <xsd:element name="BackgroundGradientType" type="xsd:string" minOccurs="0" />
     <xsd:element name="BackgroundGradientEndColor" type="xsd:string" minOccurs="0" />
     <xsd:element name="BackgroundHatchType" type="xsd:string" minOccurs="0" />
     <xsd:element name="BackgroundImage" type="BackgroundImageType" minOccurs="0" />
     <xsd:element name="FontStyle" type="xsd:string" minOccurs="0" />
     <xsd:element name="FontFamily" type="xsd:string" minOccurs="0" />
     <xsd:element name="FontSize" type="xsd:string" minOccurs="0" />
     <xsd:element name="FontWeight" type="xsd:string" minOccurs="0" />
     <xsd:element name="Format" type="xsd:string" minOccurs="0" />
     <xsd:element name="TextDecoration" type="xsd:string" minOccurs="0" />
     <xsd:element name="TextAlign" type="xsd:string" minOccurs="0" />
     <xsd:element name="VerticalAlign" type="xsd:string" minOccurs="0" />
     <xsd:element name="Color" type="xsd:string" minOccurs="0" />
     <xsd:element name="PaddingLeft" type="xsd:string" minOccurs="0" />
     <xsd:element name="PaddingRight" type="xsd:string" minOccurs="0" />
     <xsd:element name="PaddingTop" type="xsd:string" minOccurs="0" />
     <xsd:element name="PaddingBottom" type="xsd:string" minOccurs="0" />
     <xsd:element name="LineHeight" type="xsd:string" minOccurs="0" />
     <xsd:element name="Direction" type="xsd:string" minOccurs="0" />
     <xsd:element name="WritingMode" type="xsd:string" minOccurs="0" />
     <xsd:element name="Language" type="xsd:string" minOccurs="0" />
     <xsd:element name="UnicodeBiDi" type="xsd:string" minOccurs="0" />
     <xsd:element name="Calendar" type="xsd:string" minOccurs="0" />
     <xsd:element name="NumeralLanguage" type="xsd:string" minOccurs="0" />
     <xsd:element name="NumeralVariant" type="xsd:string" minOccurs="0" />
     <xsd:any namespace="##other" processContents="skip" />
   </xsd:choice>
   <xsd:anyAttribute namespace="##other" processContents="skip" />
 </xsd:complexType>

The following is the XML Schema definition of the Style element in RDL 2008/01.

 <xsd:complexType name="StyleType">
   <xsd:choice minOccurs="0" maxOccurs="unbounded">
     <xsd:element name="Border" type="BorderType" minOccurs="0" />
     <xsd:element name="TopBorder" type="BorderType" minOccurs="0" />
     <xsd:element name="BottomBorder" type="BorderType" minOccurs="0" />
     <xsd:element name="LeftBorder" type="BorderType" minOccurs="0" />
     <xsd:element name="RightBorder" type="BorderType" minOccurs="0" />
     <xsd:element name="BackgroundColor" type="xsd:string" minOccurs="0" />
     <xsd:element name="BackgroundGradientType" type="xsd:string" minOccurs="0" />
     <xsd:element name="BackgroundGradientEndColor" type="xsd:string" 
                  minOccurs="0" />
     <xsd:element name="BackgroundHatchType" type="xsd:string" minOccurs="0" />
     <xsd:element name="BackgroundImage" type="BackgroundImageType" minOccurs="0" />
     <xsd:element name="FontStyle" type="xsd:string" minOccurs="0" />
     <xsd:element name="FontFamily" type="xsd:string" minOccurs="0" />
     <xsd:element name="FontSize" type="xsd:string" minOccurs="0" />
     <xsd:element name="FontWeight" type="xsd:string" minOccurs="0" />
     <xsd:element name="Format" type="xsd:string" minOccurs="0" />
     <xsd:element name="TextDecoration" type="xsd:string" minOccurs="0" />
     <xsd:element name="TextAlign" type="xsd:string" minOccurs="0" />
     <xsd:element name="TextEffect" type="xsd:string" minOccurs="0" />
     <xsd:element name="VerticalAlign" type="xsd:string" minOccurs="0" />
     <xsd:element name="Color" type="xsd:string" minOccurs="0" />
     <xsd:element name="ShadowColor" type="xsd:string" minOccurs="0" />
     <xsd:element name="ShadowOffset" type="xsd:string" minOccurs="0" />
     <xsd:element name="PaddingLeft" type="xsd:string" minOccurs="0" />
     <xsd:element name="PaddingRight" type="xsd:string" minOccurs="0" />
     <xsd:element name="PaddingTop" type="xsd:string" minOccurs="0" />
     <xsd:element name="PaddingBottom" type="xsd:string" minOccurs="0" />
     <xsd:element name="LineHeight" type="xsd:string" minOccurs="0" />
     <xsd:element name="Direction" type="xsd:string" minOccurs="0" />
     <xsd:element name="WritingMode" type="xsd:string" minOccurs="0" />
     <xsd:element name="Language" type="xsd:string" minOccurs="0" />
     <xsd:element name="UnicodeBiDi" type="xsd:string" minOccurs="0" />
     <xsd:element name="Calendar" type="xsd:string" minOccurs="0" />
     <xsd:element name="NumeralLanguage" type="xsd:string" minOccurs="0" />
     <xsd:element name="NumeralVariant" type="xsd:string" minOccurs="0" />
     <xsd:any namespace="##other" processContents="skip" />
   </xsd:choice>
   <xsd:anyAttribute namespace="##other" processContents="skip" />
 </xsd:complexType>

The following is the XML Schema definition of the Style element in 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:complexType name="StyleType">
   <xsd:choice minOccurs="0" maxOccurs="unbounded">
     <xsd:element name="Border" type="BorderType" minOccurs="0" />
     <xsd:element name="TopBorder" type="BorderType" minOccurs="0" />
     <xsd:element name="BottomBorder" type="BorderType" minOccurs="0" />
     <xsd:element name="LeftBorder" type="BorderType" minOccurs="0" />
     <xsd:element name="RightBorder" type="BorderType" minOccurs="0" />
     <xsd:element name="BackgroundColor" type="xsd:string" minOccurs="0" />
     <xsd:element name="BackgroundGradientType" type="xsd:string" minOccurs="0" />
     <xsd:element name="BackgroundGradientEndColor" type="xsd:string" 
                  minOccurs="0" />
     <xsd:element name="BackgroundHatchType" type="xsd:string" minOccurs="0" />
     <xsd:element name="BackgroundImage" type="BackgroundImageType" minOccurs="0" />
     <xsd:element name="FontStyle" type="xsd:string" minOccurs="0" />
     <xsd:element name="FontFamily" type="xsd:string" minOccurs="0" />
     <xsd:element name="FontSize" type="xsd:string" minOccurs="0" />
     <xsd:element name="FontWeight" type="xsd:string" minOccurs="0" />
     <xsd:element name="Format" type="xsd:string" minOccurs="0" />
     <xsd:element name="TextDecoration" type="xsd:string" minOccurs="0" />
     <xsd:element name="TextAlign" type="xsd:string" minOccurs="0" />
     <xsd:element name="TextEffect" type="xsd:string" minOccurs="0" />
     <xsd:element name="VerticalAlign" type="xsd:string" minOccurs="0" />
     <xsd:element name="Color" type="xsd:string" minOccurs="0" />
     <xsd:element name="ShadowColor" type="xsd:string" minOccurs="0" />
     <xsd:element name="ShadowOffset" type="xsd:string" minOccurs="0" />
     <xsd:element name="PaddingLeft" type="xsd:string" minOccurs="0" />
     <xsd:element name="PaddingRight" type="xsd:string" minOccurs="0" />
     <xsd:element name="PaddingTop" type="xsd:string" minOccurs="0" />
     <xsd:element name="PaddingBottom" type="xsd:string" minOccurs="0" />
     <xsd:element name="LineHeight" type="xsd:string" minOccurs="0" />
     <xsd:element name="Direction" type="xsd:string" minOccurs="0" />
     <xsd:element name="WritingMode" type="xsd:string" minOccurs="0" />
     <xsd:element name="Language" type="xsd:string" minOccurs="0" />
     <xsd:element name="UnicodeBiDi" type="xsd:string" minOccurs="0" />
     <xsd:element name="Calendar" type="xsd:string" minOccurs="0" />
     <xsd:element name="NumeralLanguage" type="xsd:string" minOccurs="0" />
     <xsd:element name="NumeralVariant" type="xsd:string" minOccurs="0" />
     <xsd:any namespace="##other" processContents="lax" />
   </xsd:choice>
   <xsd:anyAttribute namespace="##other" processContents="lax" />
 </xsd:complexType>