• Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Design
    Unite UX
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class Style

Represents the style of a report item.

Inheritance
System.Object
Style
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.Reporting.Drawing
Assembly: Telerik.Reporting.dll

Syntax

public class Style : IStyle

Properties

BackgroundColor

Gets or sets the background color of the report item.

Declaration
public Color BackgroundColor { get; set; }
Property Value
System.Drawing.Color

A System.Drawing.Color that represents the background color of the report item. The default is System.Drawing.Color.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 System.Drawing.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
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
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 System.Drawing.Color.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
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
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
public Color Color { get; set; }
Property Value
System.Drawing.Color

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

Font

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

Declaration
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 System.Drawing.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
System.Drawing.Color

A System.Drawing.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
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
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
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
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
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
public bool Visible { get; set; }
Property Value
System.Boolean

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

Methods

ToString()

Declaration
public override string ToString()
Returns
System.String

Overrides
System.Object.ToString()

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Install Now
  • Online Demos
Support Resources
  • Documentation
  • Knowledge Base
  • Videos
  • Reporting Samples Repository
  • Reporting Release History
Community
  • Forums
  • Blogs
  • Reporting Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.