Search Results for

    Show / Hide Table of Contents

    Class Style

    Defines the Fill, Border and Text properties of the Chart graphic element

    Inheritance
    System.Object
    Style
    BreadCrumbStyle
    RecordStyle
    DrawStyle
    RecordStyle
    RecordStyle
    RootStyle
    RecordStyle
    Namespace: FastReport.BG.Styling
    Assembly: FastReport.BG.dll
    Syntax
    public class Style

    Constructors

    Style()

    Constructs an instace of Style class

    Declaration
    public Style()

    Properties

    BorderColor

    Gets or sets border color

    Declaration
    public Color BorderColor { get; set; }
    Property Value
    Type Description
    System.Drawing.Color

    BorderWidth

    Gets or sets border witdh

    Declaration
    public int BorderWidth { get; set; }
    Property Value
    Type Description
    System.Int32

    Color2

    Gets or sets color2

    Declaration
    public Color Color2 { get; set; }
    Property Value
    Type Description
    System.Drawing.Color

    DefaultBorderColor

    Default Border Color.

    Declaration
    protected virtual Color DefaultBorderColor { get; }
    Property Value
    Type Description
    System.Drawing.Color

    DefaultBorderWidth

    Default Border Width.

    Declaration
    protected virtual int DefaultBorderWidth { get; }
    Property Value
    Type Description
    System.Int32

    DefaultColor2

    Default Color2.

    Declaration
    protected virtual Color DefaultColor2 { get; }
    Property Value
    Type Description
    System.Drawing.Color

    DefaultFillColor

    Default Fill Color.

    Declaration
    protected virtual Color DefaultFillColor { get; }
    Property Value
    Type Description
    System.Drawing.Color

    DefaultFillStyle

    Default Fill Style.

    Declaration
    protected virtual FillStyle DefaultFillStyle { get; }
    Property Value
    Type Description
    FillStyle

    DefaultFont

    Default font. Used to initialize the Font property.

    Declaration
    protected virtual Font DefaultFont { get; }
    Property Value
    Type Description
    System.Drawing.Font
    Remarks

    Style wont serialize Font if it equals the DefaultFont value. Equals DrawUtils.DefaultChartFont if not overriden by descendant.

    DefaultGradientStyle

    Gradient Style.

    Declaration
    protected virtual GradientStyle DefaultGradientStyle { get; }
    Property Value
    Type Description
    GradientStyle

    DefaultHatchStyle

    Default Hatch Style.

    Declaration
    protected virtual HatchStyle DefaultHatchStyle { get; }
    Property Value
    Type Description
    System.Drawing.Drawing2D.HatchStyle

    DefaultTextColor

    Default text color. Used to initialize TextColor property

    Declaration
    protected virtual Color DefaultTextColor { get; }
    Property Value
    Type Description
    System.Drawing.Color
    Remarks

    Style wont serialize TextColor if it equals the DefaultTextColor value. Equals Colors.Empty if not overriden by descendant.

    DefaultTextGlowColor

    Default Text Glow Color.

    Declaration
    protected virtual Color DefaultTextGlowColor { get; }
    Property Value
    Type Description
    System.Drawing.Color

    FillColor

    Gets or sets fill color

    Declaration
    public Color FillColor { get; set; }
    Property Value
    Type Description
    System.Drawing.Color

    FillStyle

    Fill Style.

    Declaration
    public FillStyle FillStyle { get; set; }
    Property Value
    Type Description
    FillStyle

    Font

    Font object used to draw the graphic element

    Declaration
    public Font Font { get; set; }
    Property Value
    Type Description
    System.Drawing.Font

    GradientStyle

    Gets or sets gradient style

    Declaration
    public GradientStyle GradientStyle { get; set; }
    Property Value
    Type Description
    GradientStyle

    HatchStyle

    Hatch style.

    Declaration
    public HatchStyle HatchStyle { get; set; }
    Property Value
    Type Description
    System.Drawing.Drawing2D.HatchStyle

    TextColor

    Gets or sets text color

    Declaration
    public Color TextColor { get; set; }
    Property Value
    Type Description
    System.Drawing.Color

    TextGlowColor

    Gets or sets text glow color

    Declaration
    public Color TextGlowColor { get; set; }
    Property Value
    Type Description
    System.Drawing.Color

    Methods

    Assign(Style)

    Copies properties from another Style object.

    Declaration
    public virtual void Assign(Style source)
    Parameters
    Type Name Description
    Style source

    Style object to copy properties from

    CreateBrush(GraphicsPath)

    Creates Brush.

    Declaration
    public Brush CreateBrush(GraphicsPath path)
    Parameters
    Type Name Description
    System.Drawing.Drawing2D.GraphicsPath path
    Returns
    Type Description
    System.Drawing.Brush

    CreateBrush(RectangleF)

    Creates Brush.

    Declaration
    public Brush CreateBrush(RectangleF r)
    Parameters
    Type Name Description
    System.Drawing.RectangleF r
    Returns
    Type Description
    System.Drawing.Brush

    CreatePen()

    Creates Pen.

    Declaration
    public Pen CreatePen()
    Returns
    Type Description
    System.Drawing.Pen

    DoChange()

    Raises Changed event.

    Declaration
    protected virtual void DoChange()

    Equals(Object)

    Equals.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    System.Object.Equals(System.Object)

    GetHashCode()

    Get Hash Code.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.Object.GetHashCode()

    MergeWith(Style)

    Replaces simple values of the instance (Color.Empty of Solid fill type) by more valuable values of the passed Style object

    Declaration
    public virtual void MergeWith(Style style)
    Parameters
    Type Name Description
    Style style

    Style object to get values

    ResetBorderColor()

    Reset border color to default border color.

    Declaration
    public void ResetBorderColor()
    Remarks

    Default value = Solid

    ResetBorderWidth()

    Reset border widht to default border width

    Declaration
    public void ResetBorderWidth()
    Remarks

    DefaultBorderWidth = 1

    ResetColor2()

    Reset color2 to default color.

    Declaration
    public void ResetColor2()
    Remarks

    Default value = Empty

    ResetFillColor()

    Reset fill color to default fill color.

    Declaration
    public void ResetFillColor()
    Remarks

    Default value = Empty

    ResetFillStyle()

    Reset fill style to default value.

    Declaration
    public void ResetFillStyle()
    Remarks

    Default value = Empty

    ResetFont()

    Resets Font property to DefaultFont

    Declaration
    public void ResetFont()
    See Also
    Font
    DefaultFont
    ShouldSerializeFont()

    ResetGradientStyle()

    Reset gradient style to default value.

    Declaration
    public void ResetGradientStyle()
    Remarks

    Default value = Horizontal

    ResetHatchStyle()

    Reset hatch style to default value.

    Declaration
    public void ResetHatchStyle()
    Remarks

    Defult value = BackwardDiagonal

    ResetTextColor()

    Reset text color to default value.

    Declaration
    public void ResetTextColor()
    Remarks

    Default value = Empty

    ResetTextGlowColor()

    Reset text glow color to default value.

    Declaration
    public void ResetTextGlowColor()
    Remarks

    Default value = Empty

    ShouldSerializeBorderColor()

    Should Serialize Border Color.

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

    ShouldSerializeBorderWidth()

    Should Serialize Border Width.

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

    ShouldSerializeColor2()

    Should Serialize Color2.

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

    ShouldSerializeFillColor()

    Should Serialize Fill Color.

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

    ShouldSerializeFillStyle()

    Should Serialize Fill Style.

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

    ShouldSerializeFont()

    Defines whether Designer should serialze Font property

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

    true - should serialize;false - should not serialize

    See Also
    Font
    DefaultFont
    ResetFont()

    ShouldSerializeGradientStyle()

    Should Serialize Gradient Style.

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

    ShouldSerializeHatchStyle()

    Should Serialize Hatch Style.

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

    ShouldSerializeTextColor()

    Should Serialize Text Color.

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

    ShouldSerializeTextGlowColor()

    Should Serialize Text Glow Color.

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

    Events

    Changed

    Changed handler.

    Declaration
    public event EventHandler Changed
    Event Type
    Type Description
    System.EventHandler
    Back to top © 2021-2022 Copyright Fast Reports Inc.