ClassStyle
Represents the style of a report item.
Definition
Namespace:Telerik.Reporting.Drawing
Assembly:Telerik.Reporting.dll
Syntax:
[TypeConverter(typeof(ExpandableObjectConverter))]
public class Style
Inheritance: objectStyle
Properties
BackgroundColor
Gets or sets the background color of the report item.
Declaration
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
public BackgroundImage BackgroundImage { get; }
Property Value
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
public BorderColor BorderColor { get; }
Property Value
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
public BorderStyle BorderStyle { get; }
Property Value
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
public BorderWidth BorderWidth { get; }
Property Value
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
public Color Color { get; set; }
Property Value
Color
The foreground Color of the report item. The default is Black.
LineColor
Gets or sets the Color (stroke) representing the line color of report items that support it, such as lines and shapes.
Declaration
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.
LineWidth
Gets or sets a Unit representing the line width of report items that support it, such as lines and shapes.
TextAlign
Gets or sets the horizontal alignment of text in the report item.
Declaration
public HorizontalAlign TextAlign { get; set; }
Property Value
One of the HorizontalAlign values. The default is HorizontalAlign.Left.
VerticalAlign
Gets or sets the vertical alignment of text in the report item.
Declaration
public VerticalAlign VerticalAlign { get; set; }
Property Value
One of the VerticalAlign values. The default is VerticalAlign.Top.
Visible
Gets or sets a value indicating whether the report item is displayed.
Declaration
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
public override string ToString()
Returns
string
Overrides