Search Results for

    Show / Hide Table of Contents

    Class ColorScale

    Represents the color scale.

    Inheritance
    System.Object
    ScaleBase
    ColorScale
    Inherited Members
    ScaleBase.Border
    ScaleBase.Fill
    ScaleBase.TitleFont
    ScaleBase.TitleColor
    ScaleBase.TitleText
    ScaleBase.Font
    ScaleBase.TextColor
    ScaleBase.BorderColor
    ScaleBase.Dock
    ScaleBase.Visible
    Namespace: FastReport.Map
    Assembly: FastReport.dll
    Syntax
    public class ColorScale : ScaleBase

    Constructors

    ColorScale()

    Initializes a new instance of the ColorScale class.

    Declaration
    public ColorScale()

    Properties

    Data

    Gets or sets ColorRanges that must be displayed in this color scale.

    Declaration
    [Browsable(false)]
    public ColorRanges Data { get; set; }
    Property Value
    Type Description
    ColorRanges

    Format

    Gets or sets the format string used to format data values.

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

    HideIfNoData

    Gets or sets a value indicating whether the color scale must be hidden if there is no data in it.

    Declaration
    public bool HideIfNoData { get; set; }
    Property Value
    Type Description
    System.Boolean

    NoDataText

    Gets or sets the text displayed in the color scale if there is no data in it.

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

    Methods

    Assign(ScaleBase)

    Copies the contents of another ScaleBase.

    Declaration
    public override void Assign(ScaleBase src)
    Parameters
    Type Name Description
    ScaleBase src

    The ScaleBase instance to copy the contents from.

    Overrides
    ScaleBase.Assign(ScaleBase)

    CalcSize()

    Gets the size of the scale, in pixels.

    Declaration
    public override SizeF CalcSize()
    Returns
    Type Description
    System.Drawing.SizeF

    The SizeF structure containing the size of the object.

    Overrides
    ScaleBase.CalcSize()

    Draw(FRPaintEventArgs, MapObject)

    Draws the object.

    Declaration
    public override void Draw(FRPaintEventArgs e, MapObject parent)
    Parameters
    Type Name Description
    FRPaintEventArgs e

    Draw parameters.

    MapObject parent

    Parent map object.

    Overrides
    ScaleBase.Draw(FRPaintEventArgs, MapObject)

    Serialize(FRWriter, String, ScaleBase)

    Serializes the scale.

    Declaration
    public override void Serialize(FRWriter writer, string prefix, ScaleBase diff)
    Parameters
    Type Name Description
    FRWriter writer

    Writer object.

    System.String prefix

    Scale property name.

    ScaleBase diff

    Another ScaleBase to compare with.

    Overrides
    ScaleBase.Serialize(FRWriter, String, ScaleBase)
    Remarks

    This method is for internal use only.

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