Style
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
Color
Gets or sets the background color of the report item.
public Color BackgroundColor { get; set; }
A Color that represents the background color of the report item. The default is Empty, which indicates that this property is not set.
Use the BackgroundColor property to specify the background color of the report item. This property is set using a Color object.
Gets a BackgroundImage object that controls the image displayed in the background of the report item.
public BackgroundImage BackgroundImage { get; }
An BackgroundImage that represents the image to display in the background of the report item. Report items have no background image by default.
Gets a BorderColor object used to define the border color of a report item.
public BorderColor BorderColor { get; }
A BorderColor representing the border color of the report item.
Gets a BorderStyle object used to define the border style of a report item.
public BorderStyle BorderStyle { get; }
A BorderStyle representing the border style of the report item.
Gets a BorderWidth object used to define the border width of a report item.
public BorderWidth BorderWidth { get; }
A BorderWidth representing the border width of the report item.
Color
Color
Gets or sets the foreground color of the report item.
public Color Color { get; set; }
The foreground Color of the report item. The default is Black.
LineColor
Color
Gets or sets the Color (stroke) representing the line color of report items that support it, such as lines and shapes.
[AIAssistantDescription("Line stroke/border color. For LineSeries: the color of the connecting line. Color formats: named ('Red'), hex ('#FF0000'), or RGB ('255, 0, 0'). Default: Black.")]
public Color LineColor { get; set; }
A Color value representing the line color of the report item. By default its value is Black.
Gets or sets a Unit representing the line width of report items that support it, such as lines and shapes.
[AIAssistantDescription("Line stroke thickness. For LineSeries: the visual width of the connecting line — '3px' is noticeably thicker than the default '1pt'; '5px' is bold. Also controls border width on shapes and gauge elements. Unit string format: '3px', '2pt', '1mm'. Bare '0' removes the stroke.")]
public Unit LineWidth { get; set; }
A Unit value representing the line width of the report item. By default the width is 1pt.
Gets a Padding object used to define the padding of a report item.
Gets or sets the horizontal alignment of text in the report item.
public HorizontalAlign TextAlign { get; set; }
One of the HorizontalAlign values. The default is HorizontalAlign.Left.
Gets or sets the vertical alignment of text in the report item.
public VerticalAlign VerticalAlign { get; set; }
One of the VerticalAlign values. The default is VerticalAlign.Top.
Visible
bool
Gets or sets a value indicating whether the report item is displayed.
public bool Visible { get; set; }
true if the report item is displayed; otherwise, false. The default is true.
Methods
Internal use only
public override string ToString()
string
Overrides: