ASP.NET MVC 11.1.10
Demos Support Blog Download
Show / Hide Table of Contents
PDF

Class Style

Inheritance
System.Object
Style
Inherited Members
System.Object.ToString()
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: BoldReports.RDL.DOM
Assembly: BoldReports.Web.dll
Syntax
public class Style

Constructors

Style()

Declaration
public Style()

Style(ReportSerializer)

Declaration
public Style(ReportSerializer serializer)
Parameters
Type Name Description
BoldReports.RDL.DOM.ReportSerializer serializer

Properties

BackgroundColor

Represents the background color of an element.

Declaration
public string BackgroundColor { get; set; }
Property Value
Type Description
System.String

A string representing the color of the background, default is "Transparent".

BackgroundGradientEndColor

Represents the end color of the background gradient.

Declaration
public string BackgroundGradientEndColor { get; set; }
Property Value
Type Description
System.String

A string representing the end color of the gradient.

BackgroundGradientType

Represents the background gradient type.

Declaration
public string BackgroundGradientType { get; set; }
Property Value
Type Description
System.String

A string representing the gradient type, default is "None".

BackgroundHatchType

Gets or sets the type of background hatch pattern.

Declaration
public string BackgroundHatchType { get; set; }
Property Value
Type Description
System.String

The background hatch pattern type as a string.

BackgroundImage

Gets or sets the background image.

Declaration
public BackgroundImage BackgroundImage { get; set; }
Property Value
Type Description
BoldReports.RDL.DOM.BackgroundImage

A BackgroundImage object.

Border

Gets or sets the border configuration.

Declaration
public Border Border { get; set; }
Property Value
Type Description
BoldReports.RDL.DOM.Border

A Border object.

BottomBorder

Gets or sets the configuration for the bottom border.

Declaration
public BottomBorder BottomBorder { get; set; }
Property Value
Type Description
BoldReports.RDL.DOM.BottomBorder

A BottomBorder object.

Calendar

Gets or sets the calendar system used.

Declaration
public string Calendar { get; set; }
Property Value
Type Description
System.String

The calendar system as a string.

Color

Gets or sets the color of the text.

Declaration
public string Color { get; set; }
Property Value
Type Description
System.String

The color as a string, processed through the report utility.

Direction

Gets or sets the text direction.

Declaration
public string Direction { get; set; }
Property Value
Type Description
System.String

The direction of the text (e.g., left-to-right or right-to-left).

FontFamily

Represents the font family of the text.

Declaration
public string FontFamily { get; set; }
Property Value
Type Description
System.String

A string representing the font family.

FontSize

Represents the font size.

Declaration
public Size FontSize { get; set; }
Property Value
Type Description
BoldReports.RDL.DOM.Size

A Size object representing the size of the font.

FontStyle

Represents the style of the font.

Declaration
public string FontStyle { get; set; }
Property Value
Type Description
System.String

A string representing the font style, default is "Default".

FontWeight

Represents the weight of the font.

Declaration
public string FontWeight { get; set; }
Property Value
Type Description
System.String

A string representing the font weight, default is "Default".

Format

Represents the format of an element.

Declaration
public string Format { get; set; }
Property Value
Type Description
System.String

A string representing the format.

FormatType

Declaration
public TextFormat FormatType { get; set; }
Property Value
Type Description
BoldReports.RDL.DOM.TextFormat

Language

Gets or sets the language.

Declaration
public string Language { get; set; }
Property Value
Type Description
System.String

The language used.

LeftBorder

Gets or sets the configuration for the left border.

Declaration
public LeftBorder LeftBorder { get; set; }
Property Value
Type Description
BoldReports.RDL.DOM.LeftBorder

A LeftBorder object.

LineHeight

Gets or sets the line height.

Declaration
public Size LineHeight { get; set; }
Property Value
Type Description
BoldReports.RDL.DOM.Size

The height of the line.

NumeralLanguage

Gets or sets the numeral language preference.

Declaration
public string NumeralLanguage { get; set; }
Property Value
Type Description
System.String

The numeral language as a string.

NumeralVariant

Gets or sets the numeral variant.

Declaration
public string NumeralVariant { get; set; }
Property Value
Type Description
System.String

The numeral variant as a string.

PaddingBottom

Gets or sets the padding on the bottom side.

Declaration
public Size PaddingBottom { get; set; }
Property Value
Type Description
BoldReports.RDL.DOM.Size

The padding on the bottom side.

PaddingLeft

Gets or sets the padding on the left side.

Declaration
public Size PaddingLeft { get; set; }
Property Value
Type Description
BoldReports.RDL.DOM.Size

The padding size as a BoldReports.RDL.DOM.Size.

PaddingRight

Gets or sets the padding on the right side.

Declaration
public Size PaddingRight { get; set; }
Property Value
Type Description
BoldReports.RDL.DOM.Size

The padding on the right side.

PaddingTop

Gets or sets the padding on the top side.

Declaration
public Size PaddingTop { get; set; }
Property Value
Type Description
BoldReports.RDL.DOM.Size

The padding on the top side.

RightBorder

Gets or sets the configuration for the right border.

Declaration
public RightBorder RightBorder { get; set; }
Property Value
Type Description
BoldReports.RDL.DOM.RightBorder

A RightBorder object.

ShadowColor

Gets or sets the shadow color.

Declaration
public string ShadowColor { get; set; }
Property Value
Type Description
System.String

The shadow color as a string.

ShadowOffset

Gets or sets the shadow offset size.

Declaration
public Size ShadowOffset { get; set; }
Property Value
Type Description
BoldReports.RDL.DOM.Size

A BoldReports.RDL.DOM.Size struct representing the shadow offset.

TextAlign

Gets or sets the horizontal alignment of the text.

Declaration
public string TextAlign { get; set; }
Property Value
Type Description
System.String

The text alignment as a string.

TextDecoration

Gets or sets the text decoration style.

Declaration
public string TextDecoration { get; set; }
Property Value
Type Description
System.String

The text decoration as a string.

TextEffect

Gets or sets the text effects applied.

Declaration
public TextEffects TextEffect { get; set; }
Property Value
Type Description
BoldReports.RDL.DOM.TextEffects

A BoldReports.RDL.DOM.TextEffects value.

TopBorder

Gets or sets the configuration for the top border.

Declaration
public TopBorder TopBorder { get; set; }
Property Value
Type Description
BoldReports.RDL.DOM.TopBorder

A TopBorder object.

VerticalAlign

Gets or sets the vertical alignment of the text.

Declaration
public string VerticalAlign { get; set; }
Property Value
Type Description
System.String

The vertical alignment as a string.

WritingMode

Gets or sets the writing mode.

Declaration
public string WritingMode { get; set; }
Property Value
Type Description
System.String

The writing mode (e.g., horizontal or vertical).

Methods

ResetFontFamily()

Resets the FontFamily property to its default value.

Declaration
public void ResetFontFamily()

ResetFontSize()

Resets the FontWeight property to its default value.

Declaration
public void ResetFontSize()

ResetFontWeight()

Declaration
public void ResetFontWeight()

ResetFormat()

Resets the Format property.

Declaration
public void ResetFormat()

ResetFormatType()

Resets the FormatType property to its default value.

Declaration
public void ResetFormatType()

ResetLineHeight()

Resets the LineHeight property to its default value.

Declaration
public void ResetLineHeight()

ResetNumeralVariant()

Resets the NumeralVariant property to its default value of "1".

Declaration
public void ResetNumeralVariant()

ResetPaddingBottom()

Resets the PaddingBottom property to its default value.

Declaration
public void ResetPaddingBottom()

ResetPaddingLeft()

Resets the PaddingLeft property to its default value.

Declaration
public void ResetPaddingLeft()

ResetPaddingRight()

Resets the PaddingRight property to its default value.

Declaration
public void ResetPaddingRight()

ResetPaddingTop()

Resets the PaddingTop property to its default value.

Declaration
public void ResetPaddingTop()

ResetShadowOffset()

Resets the ShadowOffset property to its default value of "0pt".

Declaration
public void ResetShadowOffset()

ShouldSerializeBackgroundHatchType()

Determines whether the BackgroundHatchType property should be serialized.

Declaration
public bool ShouldSerializeBackgroundHatchType()
Returns
Type Description
System.Boolean

true if the BackgroundHatchType property is not empty and not equal to "default"; otherwise, false.

ShouldSerializeBackgroundImage()

Determines whether the BackgroundImage property should be serialized.

Declaration
public bool ShouldSerializeBackgroundImage()
Returns
Type Description
System.Boolean

true if the BackgroundImage property and its Value field are not null or empty; otherwise, false.

ShouldSerializeFontFamily()

Determines whether the FontFamily property should be serialized.

Declaration
public bool ShouldSerializeFontFamily()
Returns
Type Description
System.Boolean

true if the FontFamily property should be serialized; otherwise, false.

ShouldSerializeFontSize()

Declaration
public bool ShouldSerializeFontSize()
Returns
Type Description
System.Boolean

ShouldSerializeFontWeight()

Declaration
public bool ShouldSerializeFontWeight()
Returns
Type Description
System.Boolean

ShouldSerializeFormat()

Determines whether the Format property should be serialized.

Declaration
public bool ShouldSerializeFormat()
Returns
Type Description
System.Boolean

true if the Format property is not null or empty; otherwise, false.

ShouldSerializeFormatType()

Determines whether the FormatType property should be serialized.

Declaration
public bool ShouldSerializeFormatType()
Returns
Type Description
System.Boolean

true if the FormatType property is not null and its Format field is not empty; otherwise, false.

ShouldSerializeLineHeight()

Determines whether the LineHeight property should be serialized.

Declaration
public bool ShouldSerializeLineHeight()
Returns
Type Description
System.Boolean

true if the LineHeight property is not null, not "NaN", has a non-zero pixel value, or is an expression; otherwise, false.

ShouldSerializeNumeralVariant()

Determines whether the NumeralVariant property should be serialized.

Declaration
public bool ShouldSerializeNumeralVariant()
Returns
Type Description
System.Boolean

true if the NumeralVariant property is not empty and not equal to "1"; otherwise, false.

ShouldSerializePaddingBottom()

Determines whether the PaddingBottom property should be serialized.

Declaration
public bool ShouldSerializePaddingBottom()
Returns
Type Description
System.Boolean

true if the PaddingBottom property is not null, does not equal the default padding, or is an expression; otherwise, false.

ShouldSerializePaddingLeft()

Determines whether the PaddingLeft property should be serialized.

Declaration
public bool ShouldSerializePaddingLeft()
Returns
Type Description
System.Boolean

true if the PaddingLeft property is not null, does not equal the default padding, or is an expression; otherwise, false.

ShouldSerializePaddingRight()

Determines whether the PaddingRight property should be serialized.

Declaration
public bool ShouldSerializePaddingRight()
Returns
Type Description
System.Boolean

true if the PaddingRight property is not null, does not equal the default padding, or is an expression; otherwise, false.

ShouldSerializePaddingTop()

Determines whether the PaddingTop property should be serialized.

Declaration
public bool ShouldSerializePaddingTop()
Returns
Type Description
System.Boolean

true if the PaddingTop property is not null, does not equal the default padding, or is an expression; otherwise, false.

ShouldSerializeShadowOffset()

Determines whether the ShadowOffset property should be serialized.

Declaration
public bool ShouldSerializeShadowOffset()
Returns
Type Description
System.Boolean

true if the ShadowOffset property is not null, its size field is not null, and not equal to "0pt"; otherwise, false.

In This Article
Was this page helpful? Yes No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
×
SEND FEEDBACK REGARDING THIS TOPIC

Please provide additional information

Please provide additional information

Please provide additional information

Please provide additional information
Please provide additional information
Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved