Search Results for

    Show / Hide Table of Contents

    Class Style

    Represents a style.

    Inheritance
    System.Object
    StyleBase
    Style
    Implements
    IFRSerializable
    Inherited Members
    StyleBase.ApplyBorder
    StyleBase.ApplyFill
    StyleBase.ApplyFont
    StyleBase.ApplyTextFill
    StyleBase.Border
    StyleBase.Fill
    StyleBase.Font
    StyleBase.TextFill
    StyleBase.Deserialize(FRReader)
    Namespace: FastReport
    Assembly: FastReport.Base.dll
    Syntax
    public class Style : StyleBase, IFRSerializable
    Remarks

    Style class holds border, fill, text fill and font settings. It can be applied to any report object of ReportComponentBase type.

    The Report object holds list of styles in its Styles property. Each style has unique name. To apply a style to the report component, set its Style property to the style name.

    Constructors

    Style()

    Initializes a new instance of the Style class with default settings.

    Declaration
    public Style()

    Properties

    Name

    Gets or sets a name of the style.

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

    The name must be unique.

    Methods

    Assign(StyleBase)

    Assigns values from another source.

    Declaration
    public override void Assign(StyleBase source)
    Parameters
    Type Name Description
    StyleBase source

    Source to assign from.

    Overrides
    StyleBase.Assign(StyleBase)

    Clone()

    Creates exact copy of this Style.

    Declaration
    public Style Clone()
    Returns
    Type Description
    Style

    Copy of this style.

    Serialize(FRWriter)

    Serializes the style.

    Declaration
    public override void Serialize(FRWriter writer)
    Parameters
    Type Name Description
    FRWriter writer

    Writer object.

    Overrides
    StyleBase.Serialize(FRWriter)
    Remarks

    This method is for internal use only.

    Implements

    IFRSerializable
    Back to top © 1998-2025 Copyright Fast Reports Inc.