SciChart.Data Assembly > SciChart.Data.Model Namespace > RangeFactory Class > NewRange Method : NewRange(Type,IComparable,IComparable) Method
Type of the range to create, e.g. IndexRange or DoubleRange.
The min value of the new range
The max value of the new range
NewRange(Type,IComparable,IComparable) Method
Creates a new IRange instance of desired type, setting the min and max value
Syntax
public static IRange NewRange( 
   Type rangeType,
   IComparable min,
   IComparable max
)

Parameters

rangeType
Type of the range to create, e.g. IndexRange or DoubleRange.
min
The min value of the new range
max
The max value of the new range

Return Value

A new IRange derived instance of the same type as the input values
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