Style Element (RDL)

Contains information about the style of an item.

语法

<Body> <!-- or PageHeader, PageFooter, Line, Rectangle, Textbox, Image, Subreport, List, Matrix, Table, Chart, Subtotal, Title, Legend, Axis, DataPoint, DataLabel, Marker, PlotArea, MajorGridLines, MinorGridLines -->
       ...
        <Style>
              <BorderColor>...</BorderColor>
              <BorderStyle>...</BorderStyle>
              <BorderWidth>...</BorderWidth>
              <BackgroundColor>...</BackgroundColor>
              <BackgroundGradientEndColor>...</BackgroundGradientEndColor>
              <BackgroundGradientType>...</BackgroundGradientType>
              <BackgroundImage>...</BackgroundImage>
              <FontStyle>...</FontStyle>
              <FontFamily>...</FontFamily>
              <FontSize>...</FontSize>
              <FontWeight>...</FontWeight>
              <Format>...</Format>
              <TextDecoration>...</TextDecoration>
              <TextAlign>...</TextAlign>
              <VerticalAlign>...</VerticalAlign>
              <Color>...</Color>
              < PaddingLeft>...</PaddingLeft>
              <PaddingRight>...</PaddingRight>
              <PaddingTop>...</PaddingTop>
              <PaddingBottom>...</PaddingBottom>
              <LineHeight>...</LineHeight>
              <Direction>...</Direction>
              <WritingMode>...</WritingMode>
              <Language>...</Language>
              <UnicodeBiDi>...</UnicodeBiDi>
              <Calendar>...</Calendar>
              <NumeralLanguage>...</NumeralLanguage>
              <NumeralVariant>...</NumeralVariant>
        </Style>
       ...
<Body> <!-- or /PageHeader, /PageFooter, /Line, /Rectangle, /Textbox, /Image, /Subreport, /List, /Matrix, /Table, /Chart, /Subtotal, /Title, /Legend, /Axis, /DataPoint, /DataLabel, /Marker, /PlotArea, /MajorGridLines, /MinorGridLines -->

Element Characteristics

Characteristic Description

Data type and length

None

Default value

None

Cardinality

0-1: Optional element that can occur once or not at all.

Element Relationships

Relationship Element

Parent elements

Axis, Body, Chart, DataLabel, DataPoint, Image, Legend, Line, List, MajorGridLines, Marker, Matrix, MinorGridLines, PageFooter, PageHeader, PlotArea, Rectangle, Subreport, Subtotal, Table, Textbox, Title

Child elements

BackgroundColor, BackgroundGradientEndColor, BackgroundGradientType, BackgroundImage, BorderColor, BorderStyle, BorderWidth, Calendar, Color, Direction, FontFamily, FontSize, FontStyle, FontWeight, Format, Language, LineHeight, NumeralLanguage, NumeralVariant, PaddingBottom, PaddingLeft, PaddingRight, PaddingTop, TextAlign, TextDecoration, UnicodeBiDi, VerticalAlign, WritingMode

备注

In a data region, such as table, matrix, list, or chart, text style properties apply only to the text box that appears when the data region contains no rows. If the data region contains data, text style properties are ignored. In this case, text style is determined by the style properties for the text boxes contained within the data region.

When Style is used within the Subtotal element, Style overrides the style of any top-level items in the subtotal column or row. At the intersection of a row and a column, the style of the row overrides the style of the column.

When Style is used within the Axis element, text style properties apply to the axis labels, and line properties apply to axis lines.

请参阅

参考

Report Definition XML Elements

帮助和信息

获取 SQL Server 2005 帮助