Class AutoRange
Inheritance
Namespace: Telerik.Windows.Controls.BulletGraph
Assembly: Telerik.Windows.Controls.DataVisualization.dll
Syntax
public class AutoRange : Object
Constructors
AutoRange(Double, Double, Boolean)
Initializes a new instance of the AutoRange class.
Declaration
public AutoRange(double dataMin, double dataMax, bool isZeroBased = true)
Parameters
System.Double
dataMin
The data min. |
System.Double
dataMax
The data max. |
System.Boolean
isZeroBased
Indicates whether the auto range should be zero based. |
AutoRange(Double, Double, Int32, Boolean)
Initializes a new instance of the AutoRange class.
Declaration
public AutoRange(double dataMin, double dataMax, int intervalCount, bool isZeroBased = true)
Parameters
System.Double
dataMin
The data min. |
System.Double
dataMax
The data max. |
System.Int32
intervalCount
The interval count. |
System.Boolean
isZeroBased
Indicates whether the auto range should be zero based. |
Properties
ActualMaxValue
Gets the actual max.
Declaration
public double ActualMaxValue { get; }
Property Value
System.Double
The actual max. |
ActualMinValue
Gets the actual min.
Declaration
public double ActualMinValue { get; }
Property Value
System.Double
The actual min. |
ActualStep
Gets the actual step.
Declaration
public double ActualStep { get; }
Property Value
System.Double
The actual step. |
ContainsZero
Gets a value indicating whether the zero is contained within the range.
Declaration
public bool ContainsZero { get; }
Property Value
System.Boolean
If it contains zero |
DataMaxValue
Gets the data max value.
Declaration
public double DataMaxValue { get; }
Property Value
System.Double
The data max value. |
DataMinValue
Gets the data min value.
Declaration
public double DataMinValue { get; }
Property Value
System.Double
The data min value. |
IntervalCount
Gets or sets the interval count.
Declaration
public int IntervalCount { get; }
Property Value
System.Int32
The interval count. |
IsZeroBased
Gets or sets a value indicating whether this instance is zero based.
Declaration
public bool IsZeroBased { get; set; }
Property Value
System.Boolean
|
ShouldRoundMinValue
Gets or sets a value indicating whether the min value should be rounded.
Declaration
public bool ShouldRoundMinValue { get; set; }
Property Value
System.Boolean
If the min value should be rounded - |
UserMaxValue
Gets or sets the user max value.
Declaration
public double UserMaxValue { get; set; }
Property Value
System.Double
The user max value. |
UserMinValue
Gets or sets the user min value.
Declaration
public double UserMinValue { get; set; }
Property Value
System.Double
The user min value. |
UserStep
Gets or sets the user step.
Declaration
public double UserStep { get; set; }
Property Value
System.Double
The user step. |
Methods
CalculateMaxValue()
Calculates the max value.
Declaration
protected virtual double CalculateMaxValue()
Returns
System.Double
|
CalculateMinValue()
Calculates the min value.
Declaration
protected virtual double CalculateMinValue()
Returns
System.Double
|
CalculateStep()
Calculates the step.
Declaration
protected virtual double CalculateStep()
Returns
System.Double
|
CalculateStep(Double)
Calculates the step.
Declaration
protected double CalculateStep(double initialStep)
Parameters
System.Double
initialStep
The initial step. |
Returns
System.Double
|
Contains(Double)
Determines whether the specified value is contained within the Range.
Declaration
public bool Contains(double value)
Parameters
System.Double
value
The value. |
Returns
System.Boolean
If the Range contains the specified value - |
Equals(Object)
Determines whether the specified System.Object is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
The System.Object to compare with this instance. |
Returns
System.Boolean
|
FindStepInList(Double, List<Double>)
Finds the step in list.
Declaration
protected static double FindStepInList(double initialStep, List<double> numericSteps)
Parameters
System.Double
initialStep
The initial step. |
System.Collections.Generic.List<System.Double>
numericSteps
The numeric steps. |
Returns
System.Double
|
Flatten(Double)
Converts the point to flattened range.
Declaration
public double Flatten(double point)
Parameters
System.Double
point
The point. |
Returns
System.Double
|
Examples
Range [0; 100] -> Flattened range [0; 100] Range [-50; 50] -> Flattened range [0; 100] Range [50; 150] -> Flattened range [0; 100].
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
System.Int32
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
RoundMinValue(Double, Double)
Rounds the min value.
Declaration
protected double RoundMinValue(double minValue, double range)
Parameters
System.Double
minValue
The min value. |
System.Double
range
The range. |
Returns
System.Double
|
ScaleRange(Double)
Scales the range.
Declaration
public double ScaleRange(double range)
Parameters
System.Double
range
The range. |
Returns
System.Double
|
ScaleToRange(Double)
Scales to range.
Declaration
public double ScaleToRange(double point)
Parameters
System.Double
point
The point. |
Returns
System.Double
|
UpdateRange()
Updates the range.
Declaration
protected virtual void UpdateRange()
Operators
Equality(AutoRange, AutoRange)
Implements the operator ==.
Declaration
public static bool operator ==(AutoRange range1, AutoRange range2)
Parameters
AutoRange
range1
The range1. |
AutoRange
range2
The range2. |
Returns
System.Boolean
The result of the operator. |
Inequality(AutoRange, AutoRange)
Implements the operator !=.
Declaration
public static bool operator !=(AutoRange range1, AutoRange range2)
Parameters
AutoRange
range1
The range1. |
AutoRange
range2
The range2. |
Returns
System.Boolean
The result of the operator. |