Class Style
Inheritance
Inherited Members
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 | 
  | 
      
ShouldSerializeBackgroundImage()
Determines whether the BackgroundImage property should be serialized.
Declaration
public bool ShouldSerializeBackgroundImage()
  Returns
| Type | Description | 
|---|---|
| System.Boolean | 
  | 
      
ShouldSerializeFontFamily()
Determines whether the FontFamily property should be serialized.
Declaration
public bool ShouldSerializeFontFamily()
  Returns
| Type | Description | 
|---|---|
| System.Boolean | 
  | 
      
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 | 
  | 
      
ShouldSerializeFormatType()
Determines whether the FormatType property should be serialized.
Declaration
public bool ShouldSerializeFormatType()
  Returns
| Type | Description | 
|---|---|
| System.Boolean | 
  | 
      
ShouldSerializeLineHeight()
Determines whether the LineHeight property should be serialized.
Declaration
public bool ShouldSerializeLineHeight()
  Returns
| Type | Description | 
|---|---|
| System.Boolean | 
  | 
      
ShouldSerializeNumeralVariant()
Determines whether the NumeralVariant property should be serialized.
Declaration
public bool ShouldSerializeNumeralVariant()
  Returns
| Type | Description | 
|---|---|
| System.Boolean | 
  | 
      
ShouldSerializePaddingBottom()
Determines whether the PaddingBottom property should be serialized.
Declaration
public bool ShouldSerializePaddingBottom()
  Returns
| Type | Description | 
|---|---|
| System.Boolean | 
  | 
      
ShouldSerializePaddingLeft()
Determines whether the PaddingLeft property should be serialized.
Declaration
public bool ShouldSerializePaddingLeft()
  Returns
| Type | Description | 
|---|---|
| System.Boolean | 
  | 
      
ShouldSerializePaddingRight()
Determines whether the PaddingRight property should be serialized.
Declaration
public bool ShouldSerializePaddingRight()
  Returns
| Type | Description | 
|---|---|
| System.Boolean | 
  | 
      
ShouldSerializePaddingTop()
Determines whether the PaddingTop property should be serialized.
Declaration
public bool ShouldSerializePaddingTop()
  Returns
| Type | Description | 
|---|---|
| System.Boolean | 
  | 
      
ShouldSerializeShadowOffset()
Determines whether the ShadowOffset property should be serialized.
Declaration
public bool ShouldSerializeShadowOffset()
  Returns
| Type | Description | 
|---|---|
| System.Boolean | 
  |