SciChart.Data Assembly > SciChart.Data.Model Namespace > RangeFactory Class > NewWithMinMax Method : NewWithMinMax(IRange,Double,Double,IRange) Method
The original range to use as a reference
The min value of the new range
The max value of the new range
The range limit to clip Min and Max to.
NewWithMinMax(IRange,Double,Double,IRange) Method
Creates a new IRange derived instance of the same type as originalRange with the specified Min and Max, with a Range Limit to clip min, max to.
Syntax
public static IRange NewWithMinMax( 
   IRange originalRange,
   double min,
   double max,
   IRange rangeLimit
)

Parameters

originalRange
The original range to use as a reference
min
The min value of the new range
max
The max value of the new range
rangeLimit
The range limit to clip Min and Max to.

Return Value

A new IRange derived instance of the same type as originalRange
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also