A Range represents a double-precision floating-point interval.

2.0

Hierarchy (view full)

Methods

  • Casts this object to the specified type. Throws error on failure.

    Type Parameters

    • T1

      The target type of the cast.

    • T2

      The type of the object to cast.

    Parameters

    Returns T1

  • Casts this object to the specified type. Returns null on failure.

    Type Parameters

    • T1

      The target type of the cast.

    • T2

      The type of the object to cast.

    Parameters

    Returns null | T1

  • Determines whether the specified object instances are considered equal.

    Parameters

    • objA: any

      The first object to compare.

    • objB: any

      The second object to compare.

    Returns boolean

    true if the objects are considered equal; otherwise, false. If both objA and objB are null, the method returns true.

Default capability

  • Initializes a new instance of the Spotfire.Dxp.Data.Range struct. Copy constructor.

    Parameters

    • range: Range

      Range to copy.

    Returns Range

    2.0

  • Initializes a new instance of the Spotfire.Dxp.Data.Range struct.

    Parameters

    • low: number | Double

      The low limit of the range

    • high: number | Double

      The high limit of the range

    Returns Range

    2.0

EmptyRange: Range

Empty range. Both Low and High are 0.

2.0

InvalidRange: Range

Invalid range. No operations except IsInvalid are allowed.

2.0

UnitRange: Range

Unit range. Low is 0 and High is 1.

2.0

  • get High(): number
  • Gets the high limit of the range.

    Returns number

    2.0

  • get IsEmptyRange(): boolean
  • Gets a value indicating whether the range is empty or not.True Returns true if the range is an empty (point) interval.

    Returns boolean

    2.0

  • get IsUnitRange(): boolean
  • Gets a value indicating whether the range is a unit range. Returns true if the range is a unit range [0, 1].

    Returns boolean

    2.0

  • get IsValidRange(): boolean
  • Gets a value indicating whether the range is valid or not.

    Returns boolean

    2.0

  • get Low(): number
  • Gets the low limit of the range.

    Returns number

    2.0

  • get Midpoint(): number
  • Gets the mid-point of the range. Equal to (Low + High)/2.

    Returns number

    2.0

  • get Width(): number
  • Gets the width of the range. Equal to High - Low.

    Returns number

    2.0

  • Clamps the specified value to this range. That is, the returned value will be within this range.

    Parameters

    • value: number | Double

      The value.

    Returns number

    Clamped value.

    2.0

  • Determines whether the specified value is within the range.

    Parameters

    • value: number | Double

      The value to check.

    Returns boolean

    true if the specified value is within the range; otherwise, false.

    2.0

  • Compare for equality.

    Parameters

    • obj: any

      Another object to compare to.

    Returns boolean

    true if obj and this instance are the same type and represent the same value; otherwise, false.

    2.0

  • Calculates hash code for a range.

    Returns number

    The hashcode

    2.0

  • Returns a string representation of the range.

    Returns string

    String representation of the range.

    2.0