[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.PageReportModel.Style

Style Class

The Style element contains information about the style of a report item. Where possible, the style property names and values match standard HTML/CSS properties. All expression-based Style elements evaluate to either the type listed or to Nothing (an error in evaluation is treated as Nothing). Nothing is equivalent to not specifying the style, thereby indicating that it uses the default value. The epxression must evaluate to a Boolean value for Boolean properties, an enumerated value for enum properties, an integer for integer properties and a (formatted) string for all other properties.

Inheritance
Style
Namespace: GrapeCity.ActiveReports.PageReportModel
Assembly: MESCIUS.ActiveReports.Core.Rdl.dll
Syntax
public sealed class Style : IValidateable, ICloneable

Constructors

Name Description
Style()

Initializes a new instance of the Style class.

Style(string, Style, StyleType, bool)

Initializes a new instance of the Style class using a specified name, parent style and style type.

Fields

Name Description
AngleDefault

The default value for the Angle property.

BackgroundColorDefault

The default value for the BackgroundColor property.

BackgroundGradientEndColorDefault

The default value for the BackgroundGradientEndColor property.

BackgroundGradientTypeDefault

The default value for the BackgroundGradientType property.

BorderColorDefault

The default value for the BorderColor property.

BorderStyleDefault

The default value for the BorderStyle property.

BorderWidthDefault

The default value for the BorderWidth property.

CharacterSpacingDefault

The default value for the CharacterSpacing property.

ColorDefault

The default value for the Color property.

DefaultStyle

The singleton default Style object.

DirectionDefault

The default value for the Direction property.

FontFamilyDefault

The default value for the FontFamily property.

FontSizeDefault

The default value for the FontSize property.

FontStyleDefault

The default value for the FontStyle property.

FontWeightDefault

The default value for the FontWeight property.

HeadingLevelDefault

The default value for the HeadingLevel property.

InheritedValue

The special value for a property of style which indicates that the value should be evaluated from parent style.

LabelExpressionDefault

The default value for the LabelExpression property.

LeadingCharDefault

The default value for the LeadingChar property.

LineBorderStyleDefault

The default value for the BorderStyle line property.

MaxLevelDefault

The default value for the MaxLevel property.

MinCondenseRateDefault

The default value for the MinCondenseRate property.

MinTextIndent

The minimum value for the TextIndent property.

NumberingStyleDefault

The default value for the NumberingStyle property.

ShadowOffsetDefault

The default value for the ShadowOffset property.

ShrinkToFitDefault

The default value for the ShrinkToFit property.

TextAlignDefault

The default value for the TextAlign property.

TextDecorationDefault

The default value for the TextDecoration property.

TextIndentDefault

The default value for the TextIndent property.

TextJustifyDefault

The default value for the TextJustify property.

UprightInVerticalTextDefault

The default value for the UprightInVerticalText property.

VerticalAlignDefault

The default value for the VerticalAlign property.

WrapModeDefault

The default value for the WrapMode property.

WritingModeDefault

The default value for the WritingMode property.

Properties

Name Description
Angle

Gets or sets a number of degrees the text is rorated counter-clockwise.

BackgroundColor

Gets or sets a color of the background.

BackgroundGradientEndColor

Gets or sets an end color for the background gradient.

BackgroundGradientType

Gets or sets a gradient type of the background.

BackgroundHatchType

Gets or sets a hatching pattern of a report item.

BackgroundImage

Gets a background image for the report item.

Border

Gets or sets the default border properties, such as color, style and width.

BorderColor

Gets a color of the border, containing the default color or color for each side of the border.

BorderStyle

Gets a style of the border, containing the default style or style for each side of the border.

BorderWidth

Gets a width of the border, containing the default width or width for each side of the border.

BottomBorder

Gets or sets the bottom border properties, such as color, style and width.

Calendar

Gets or sets a calendar used for formatting dates.

CharacterSpacing

Gets or sets a spacing between characters.

Color

Gets or sets a color of the text.

Direction

Specifies the direction.

FontFamily

Gets or sets a name of the font family.

FontSize

Gets or sets a size of the font in Points units.

FontStyle

Gets or sets a style of the font.

FontWeight

Gets or sets a thickness of the font.

Format

Gets or sets a .NET Framework formatting string.

HeadingLevel

Gets or sets a heading level of the table of contents.

LabelExpression

Gets or sets an expression for label of the table of contents.

Language

Gets or sets the primary language of the text.

LeadingChar

Gets or sets an leading char for label of the table of contents.

LeftBorder

Gets or sets the left border properties, such as color, style and width.

LineHeight

Gets or sets a line height (leading).

LineSpacing

Gets or sets a spacing between lines.

MaxLevel

Gets or sets a maximum depth of the table of contents.

MinCondenseRate

Gets or sets a minimum character condense rate value.

Name

Gets or sets a name of the style.

NumberingStyle

Gets or sets a numbering style for headings of the table of contents.

NumeralLanguage

Gets or sets a digit format to use as described by its primary language.

NumeralVariant

Gets or sets a variant of the digit format to use.

PaddingBottom

Gets or sets an amount of padding between the bottom edge of the report item and its contents.

PaddingLeft

Gets or sets an amount of padding between the left edge of the report item and its contents.

PaddingRight

Gets or sets an amount of padding between the right edge of the report item and its contents.

PaddingTop

Gets or sets an amount of padding between the top edge of the report item and its contents.

ParentStyle

Gets or sets the parent style.

RightBorder

Gets or sets the right border properties, such as color, style and width.

ShadowOffset

Gets or sets a size of the shadow.

ShrinkToFit

Gets or sets a value indicating whether the text font size should be adjusted to fit the text in to container.

StyleName

Gets or sets a name of the external style.

TextAlign

Gets or sets a horizontal alignment of the text.

TextDecoration

Gets or sets a special text formatting.

TextIndent

Gets or sets a text indentation for level of the table of contents.

TextJustify

Specifies the text justify.

TopBorder

Gets or sets the top border properties, such as color, style and width.

Type

Gets or sets the type of the style.

UnicodeBiDi

Gets or sets an Unicode Bi-directional embedding mode.

UprightInVerticalText

Gets or sets a value indicates whether the digits or digits along with Latin text appear horizontally in the vertical text.

VerticalAlign

Gets or sets a vertical alignment of the text.

WrapMode

Gets or sets a word wrap behavior for the text.

WritingMode

Gets or sets a value indicating whether the text is written horizontally or vertically.

Methods

Name Description
Clone()

Creates a new object that is a copy of the current instance.

CreateDefaultStyle(bool)

Creates a new Style object with default values.

Equals(object)

Determines whether the specified object is equal to the current Style.

GetExpressions()

Returns a list of the expressions contained by this component.

GetHashCode()

Serves as a hash function for the Length.

Merge(Style, Style)

Merges a specified report item style with an external style from a stylesheet.

Validate(ValidationContext)

Validates the current state of the Style object.

Extension Methods