IRange

StockSharp.Xaml.Charting

Defines the base interface to a Range (Min, Max), used throughout Ultrachart for visible, data and index range calculations

実装: ICloneable, INotifyPropertyChanged

プロパティ

Diff : IComparable

Gets the difference (Max - Min) of this range

IsDefined : bool

Gets whether this Range is defined

IsZero : bool

Gets whether the range is Zero, where Max equals Min

Max : IComparable

Gets or sets the Max value of this range

Min : IComparable

Gets or sets the Min value of this range

メソッド

AsDoubleRange() : DoubleRange

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

ClipTo(IRange) : IRange

Clips the current IRange to a maxmimum range with MinMax mode

maximumRange
The Maximum Range

戻り値: This instance, after the operation

ClipTo(IRange, RangeClipMode) : IRange

Clips the current IRange to a maximum according to clip mode

maximumRange
The maximum range
clipMode
clip mode which defines how to clip range

戻り値: This instance, after the operation

GrowBy(double, double) : IRange

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

戻り値: This instance, after the operation

IsValueWithinRange(IComparable) : bool

Returns True if the value is within the Min and Max of the Range

value
The value to test

戻り値: True if the value is within the Min and Max of the Range

SetMinMax(double, double) : IRange

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

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

戻り値: This instance, after the operation

SetMinMaxWithLimit(double, double, IRange) : IRange

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.

戻り値: This instance, after the operation

Union(IRange) : IRange

Performs the Union of two IRange instances, returning a new IRange