DoubleRange

StockSharp.Xaml.Charting

Defines a range of type Double

Erbt von: Range<double>

Konstruktoren

DoubleRange()

Initializes a new instance of the DoubleRange class.

DoubleRange(double, double)

Initializes a new instance of the DoubleRange class.

min
The min.
max
The max.

Eigenschaften

Diff : double

Gets the difference (Max - Min) of this range

IsZero : bool

Gets whether the range is Zero, where Max equals Min

UndefinedRange : DoubleRange

Returns a new Undefined range

Methoden

AsDoubleRange() : DoubleRange

Converts this range to a DoubleRange, which are used internally for calculations

ClipTo(IRange<double>) : IRange<double>

Clips the current IRange to a maxmimum range

maximumRange
The Maximum Range

Rückgabe: This instance, after the operation

Clone() : object

Clones this instance.

GrowBy(double, double) : IRange<double>

Grows the current IRange by the min and max fraction, returning this instance after modification

minFraction
The Min fraction to grow by. For example, Min = -10 and minFraction = 0.1 will result in the new Min = -11
maxFraction
The Max fraction to grow by. For example, Max = 10 and minFraction = 0.2 will result in the new Max = 12

Rückgabe: This instance, after the operation

SetMinMax(double, double) : IRange<double>

Sets the Min, Max values on the IRange, returning this instance after modification

min
The new Min value.
max
The new Max value.

Rückgabe: This instance, after the operation

SetMinMax(double, double, IRange<double>) : IRange<double>

Sets the Min, Max values on the IRange with a max range to clip values to, returning this instance after modification

min
The new Min value.
max
The new Max value.
maxRange
The max range, which is used to clip values.

Rückgabe: This instance, after the operation