Class
Style

Represents the style of a report item.

Definition

Namespace:Telerik.Reporting.Drawing

Assembly:Telerik.Reporting.dll

Syntax:

cs-api-definition
[TypeConverter(typeof(ExpandableObjectConverter))]
public class Style

Inheritance: objectStyle

Properties

BackgroundColor

Gets or sets the background color of the report item.

Declaration

cs-api-definition
public Color BackgroundColor { get; set; }

Property Value

Color

A Color that represents the background color of the report item. The default is Empty, which indicates that this property is not set.

Remarks

Use the BackgroundColor property to specify the background color of the report item. This property is set using a Color object.

BackgroundImage

Gets a BackgroundImage object that controls the image displayed in the background of the report item.

Declaration

cs-api-definition
public BackgroundImage BackgroundImage { get; }

Property Value

BackgroundImage

An BackgroundImage that represents the image to display in the background of the report item. Report items have no background image by default.

BorderColor

Gets a BorderColor object used to define the border color of a report item.

Declaration

cs-api-definition
public BorderColor BorderColor { get; }

Property Value

BorderColor

A BorderColor representing the border color of the report item.

Remarks

You can set the border color of the item by using the properties Default, Left, Right, Top, and Bottom. The Default property is used to set all borders colors at once. All borders are Black by default.

BorderStyle

Gets a BorderStyle object used to define the border style of a report item.

Declaration

cs-api-definition
public BorderStyle BorderStyle { get; }

Property Value

BorderStyle

A BorderStyle representing the border style of the report item.

Remarks

You can set the border style of the item by using the properties Default, Left, Right, Top, and Bottom. The Default property is used to set all borders styles at once. All borders are BorderType.None by default.

BorderWidth

Gets a BorderWidth object used to define the border width of a report item.

Declaration

cs-api-definition
public BorderWidth BorderWidth { get; }

Property Value

BorderWidth

A BorderWidth representing the border width of the report item.

Remarks

You can set the border width of the item by using the properties Default, Left, Right, Top, and Bottom. The Default property is used to set all borders widths at once. All borders are 1pt wide by default.

Color

Gets or sets the foreground color of the report item.

Declaration

cs-api-definition
public Color Color { get; set; }

Property Value

Color

The foreground Color of the report item. The default is Black.

Font

Gets a Font object representing the font of the report item.

Declaration

cs-api-definition
public Font Font { get; }

Property Value

Font

A Font object used to define the font of a report item. By default the font of a report item is Arial-Regular, 10pts.

LineColor

Gets or sets the Color (stroke) representing the line color of report items that support it, such as lines and shapes.

Declaration

cs-api-definition
public Color LineColor { get; set; }

Property Value

Color

A Color value representing the line color of the report item. By default its value is Black.

LineStyle

Gets or sets a LineStyle object used to define the line style of report items that support it, such as lines and shapes.

Declaration

cs-api-definition
public LineStyle LineStyle { get; set; }

Property Value

LineStyle

A LineStyle object representing the line style of the report item. By default the line style is LineStyle.Solid.

LineWidth

Gets or sets a Unit representing the line width of report items that support it, such as lines and shapes.

Declaration

cs-api-definition
public Unit LineWidth { get; set; }

Property Value

Unit

A Unit value representing the line width of the report item. By default the width is 1pt.

Padding

Gets a Padding object used to define the padding of a report item.

Declaration

cs-api-definition
public Padding Padding { get; }

Property Value

Padding

A Padding object representing the padding of the report item.

Remarks

You can set the padding of the item by using the properties Left, Right, Top, and Bottom. Padding on all sides is Zero by default.

TextAlign

Gets or sets the horizontal alignment of text in the report item.

Declaration

cs-api-definition
public HorizontalAlign TextAlign { get; set; }

Property Value

HorizontalAlign

One of the HorizontalAlign values. The default is HorizontalAlign.Left.

VerticalAlign

Gets or sets the vertical alignment of text in the report item.

Declaration

cs-api-definition
public VerticalAlign VerticalAlign { get; set; }

Property Value

VerticalAlign

One of the VerticalAlign values. The default is VerticalAlign.Top.

Visible

Gets or sets a value indicating whether the report item is displayed.

Declaration

cs-api-definition
public bool Visible { get; set; }

Property Value

bool

true if the report item is displayed; otherwise, false. The default is true.

Methods

ToString()

Internal use only

Declaration

cs-api-definition
public override string ToString()

Returns

string

Overrides object.ToString()