New to Telerik UI for WPFStart a free 30-day trial

Definition

Namespace:Telerik.Windows.Controls.BulletGraph

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
public class AutoRange

Inheritance: objectAutoRange

Constructors

Initializes a new instance of the AutoRange class.

C#
public AutoRange(double dataMin, double dataMax, bool isZeroBased = true)
Parameters:dataMindouble

The data min.

dataMaxdouble

The data max.

isZeroBasedbool

Indicates whether the auto range should be zero based.

Initializes a new instance of the AutoRange class.

C#
public AutoRange(double dataMin, double dataMax, int intervalCount, bool isZeroBased = true)
Parameters:dataMindouble

The data min.

dataMaxdouble

The data max.

intervalCountint

The interval count.

isZeroBasedbool

Indicates whether the auto range should be zero based.

Properties

Gets the actual max.

C#
public double ActualMaxValue { get; }
Property Value:

The actual max.

Gets the actual min.

C#
public double ActualMinValue { get; }
Property Value:

The actual min.

Gets the actual step.

C#
public double ActualStep { get; }
Property Value:

The actual step.

Gets a value indicating whether the zero is contained within the range.

C#
public bool ContainsZero { get; }
Property Value:

If it contains zero true; otherwise, false.

Gets the data max value.

C#
public double DataMaxValue { get; }
Property Value:

The data max value.

Gets the data min value.

C#
public double DataMinValue { get; }
Property Value:

The data min value.

Gets or sets the interval count.

C#
public int IntervalCount { get; }
Property Value:

The interval count.

Gets or sets a value indicating whether this instance is zero based.

C#
public bool IsZeroBased { get; set; }
Property Value:

true if this instance is zero based; otherwise, false.

Gets or sets a value indicating whether the min value should be rounded.

C#
public bool ShouldRoundMinValue { get; set; }
Property Value:

If the min value should be rounded - true; otherwise, false.

Gets or sets the user max value.

C#
public double UserMaxValue { get; set; }
Property Value:

The user max value.

Gets or sets the user min value.

C#
public double UserMinValue { get; set; }
Property Value:

The user min value.

Gets or sets the user step.

C#
public double UserStep { get; set; }
Property Value:

The user step.

Methods

Calculates the max value.

C#
protected virtual double CalculateMaxValue()
Returns:

double

Calculates the min value.

C#
protected virtual double CalculateMinValue()
Returns:

double

Calculates the step.

C#
protected virtual double CalculateStep()
Returns:

double

Calculates the step.

C#
protected double CalculateStep(double initialStep)
Parameters:initialStepdouble

The initial step.

Returns:

double

Determines whether the specified value is contained within the Range.

C#
public bool Contains(double value)
Parameters:valuedouble

The value.

Returns:

bool

If the Range contains the specified value - true; otherwise, false.

Determines whether the specified object is equal to this instance.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with this instance.

Returns:

bool

true if the specified object is equal to this instance; otherwise, false.

Overrides: object.Equals(object)

Finds the step in list.

C#
protected static double FindStepInList(double initialStep, List<double> numericSteps)
Parameters:initialStepdouble

The initial step.

numericStepsList<double>

The numeric steps.

Returns:

double

Converts the point to flattened range.

C#
public double Flatten(double point)
Parameters:pointdouble

The point.

Returns:

double

Returns a hash code for this instance.

C#
public override int GetHashCode()
Returns:

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Overrides: object.GetHashCode()

Rounds the min value.

C#
protected double RoundMinValue(double minValue, double range)
Parameters:minValuedouble

The min value.

rangedouble

The range.

Returns:

double

Scales the range.

C#
public double ScaleRange(double range)
Parameters:rangedouble

The range.

Returns:

double

Scales to range.

C#
public double ScaleToRange(double point)
Parameters:pointdouble

The point.

Returns:

double

Updates the range.

C#
protected virtual void UpdateRange()

Operators

Implements the operator !=.

C#
public static bool operator !=(AutoRange range1, AutoRange range2)
Parameters:range1AutoRange

The range1.

range2AutoRange

The range2.

Returns:

bool

The result of the operator.

Implements the operator ==.

C#
public static bool operator ==(AutoRange range1, AutoRange range2)
Parameters:range1AutoRange

The range1.

range2AutoRange

The range2.

Returns:

bool

The result of the operator.