[]
        
(Showing Draft Content)

Range Class

Range Class

Defines ranges to be used with Gauge controls.

Range objects have min and max properties that define the range's domain, as well as color and thickness properties that define the range's appearance.

Every Gauge control has at least two ranges: the 'face' defines the minimum and maximum values for the gauge, and the 'pointer' displays the gauge's current value.

In addition to the built-in ranges, gauges may have additional ranges used to display regions of significance (for example, low, medium, and high values).

Heirarchy

Constructors

Properties

Methods

Events

Constructors

constructor

  • new Range(options?: any): Range
  • Initializes a new instance of the Range class.

    Parameters

    • Optional options: any

      Initialization options for the Range or a string containing the Range name.

    Returns Range

Properties

color

color: string

Gets or sets the color used to display this range.

max

max: number

Gets or sets the maximum value for this range.

min

min: number

Gets or sets the minimum value for this range.

name

name: string

Gets or sets the name of this Range.

thickness

thickness: number

Gets or sets the thickness of this range as a percentage of the parent gauge's thickness.

Methods

onPropertyChanged

Events

propertyChanged

Occurs when the value of a property in this Range changes.