TimeSpanRange
StockSharp.Xaml.Charting
Defines a Range of Type TimeSpan
Constructors
TimeSpanRange()
Initializes a new instance of the TimeSpanRange class.
TimeSpanRange(TimeSpan, TimeSpan)
Initializes a new instance of the TimeSpanRange class.
- min
- The min.
- max
- The max.
Properties
Methods
AsDoubleRange() : DoubleRange
Converts this range to a DoubleRange, which are used internally for calculations
ClipTo(IRange<TimeSpan>) : IRange<TimeSpan>
Clips the current IRange to a maxmimum range
- maximumRange
- The Maximum Range
Returns: This instance, after the operation
GrowBy(double, double) : IRange<TimeSpan>
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
Returns: This instance, after the operation
SetMinMax(double, double) : IRange<TimeSpan>
Sets the Min, Max values on the IRange, returning this instance after modification
- min
- The new Min value.
- max
- The new Max value.
Returns: This instance, after the operation