Search Results for

    Show / Hide Table of Contents

    Class ColorRanges

    Represents a set of color ranges used to highlight polygons based on analytical value.

    Inheritance
    System.Object
    ColorRanges
    Namespace: FastReport.Map
    Assembly: FastReport.dll
    Syntax
    [TypeConverter(typeof(FRExpandableObjectConverter))]
    public class ColorRanges

    Constructors

    ColorRanges()

    Initializes a new instance of the ColorRanges class.

    Declaration
    public ColorRanges()

    Properties

    EndColor

    Gets or sets the end color.

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

    MiddleColor

    Gets or sets the middle color.

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

    RangeCount

    Gets or sets the number of ranges.

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

    Ranges

    Gets the list of ranges.

    Declaration
    public List<ColorRange> Ranges { get; }
    Property Value
    Type Description
    System.Collections.Generic.List<ColorRange>

    RangesAsString

    Gets or sets ranges as a string.

    Declaration
    [Browsable(false)]
    public string RangesAsString { get; set; }
    Property Value
    Type Description
    System.String

    ShowInColorScale

    Gets or sets a value indicating that the map's color scale must display data from this color ranges.

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

    StartColor

    Gets or sets the start color.

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

    Methods

    Assign(ColorRanges)

    Copies the contents of another ColorRanges.

    Declaration
    public void Assign(ColorRanges src)
    Parameters
    Type Name Description
    ColorRanges src

    The ColorRanges instance to copy the contents from.

    GetColor(Double)

    Gets a color associated with given analytical value.

    Declaration
    public Color GetColor(double value)
    Parameters
    Type Name Description
    System.Double value

    The analytical value.

    Returns
    Type Description
    System.Drawing.Color

    The color associated with this value, or Color.Transparent if no association found.

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