Class
AutoRange

Definition

Namespace:Telerik.Windows.Controls.BulletGraph

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

cs-api-definition
public class AutoRange

Inheritance: objectAutoRange

Constructors

AutoRange(double, double, bool)

Initializes a new instance of the AutoRange class.

Declaration

cs-api-definition
public AutoRange(double dataMin, double dataMax, bool isZeroBased = true)

Parameters

dataMin

double

The data min.

dataMax

double

The data max.

isZeroBased

bool

Indicates whether the auto range should be zero based.

AutoRange(double, double, int, bool)

Initializes a new instance of the AutoRange class.

Declaration

cs-api-definition
public AutoRange(double dataMin, double dataMax, int intervalCount, bool isZeroBased = true)

Parameters

dataMin

double

The data min.

dataMax

double

The data max.

intervalCount

int

The interval count.

isZeroBased

bool

Indicates whether the auto range should be zero based.

Properties

ActualMaxValue

Gets the actual max.

Declaration

cs-api-definition
public double ActualMaxValue { get; }

Property Value

double

The actual max.

ActualMinValue

Gets the actual min.

Declaration

cs-api-definition
public double ActualMinValue { get; }

Property Value

double

The actual min.

ActualStep

Gets the actual step.

Declaration

cs-api-definition
public double ActualStep { get; }

Property Value

double

The actual step.

ContainsZero

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

Declaration

cs-api-definition
public bool ContainsZero { get; }

Property Value

bool

If it contains zero true; otherwise, false.

DataMaxValue

Gets the data max value.

Declaration

cs-api-definition
public double DataMaxValue { get; }

Property Value

double

The data max value.

DataMinValue

Gets the data min value.

Declaration

cs-api-definition
public double DataMinValue { get; }

Property Value

double

The data min value.

IntervalCount

Gets or sets the interval count.

Declaration

cs-api-definition
public int IntervalCount { get; }

Property Value

int

The interval count.

IsZeroBased

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

Declaration

cs-api-definition
public bool IsZeroBased { get; set; }

Property Value

bool

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

ShouldRoundMinValue

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

Declaration

cs-api-definition
public bool ShouldRoundMinValue { get; set; }

Property Value

bool

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

UserMaxValue

Gets or sets the user max value.

Declaration

cs-api-definition
public double UserMaxValue { get; set; }

Property Value

double

The user max value.

UserMinValue

Gets or sets the user min value.

Declaration

cs-api-definition
public double UserMinValue { get; set; }

Property Value

double

The user min value.

UserStep

Gets or sets the user step.

Declaration

cs-api-definition
public double UserStep { get; set; }

Property Value

double

The user step.

Methods

CalculateMaxValue()

Calculates the max value.

Declaration

cs-api-definition
protected virtual double CalculateMaxValue()

Returns

double

CalculateMinValue()

Calculates the min value.

Declaration

cs-api-definition
protected virtual double CalculateMinValue()

Returns

double

CalculateStep()

Calculates the step.

Declaration

cs-api-definition
protected virtual double CalculateStep()

Returns

double

CalculateStep(double)

Calculates the step.

Declaration

cs-api-definition
protected double CalculateStep(double initialStep)

Parameters

initialStep

double

The initial step.

Returns

double

Contains(double)

Determines whether the specified value is contained within the Range.

Declaration

cs-api-definition
public bool Contains(double value)

Parameters

value

double

The value.

Returns

bool

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

Equals(object)

Determines whether the specified object is equal to this instance.

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

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)

FindStepInList(double, List<double>)

Finds the step in list.

Declaration

cs-api-definition
protected static double FindStepInList(double initialStep, List<double> numericSteps)

Parameters

initialStep

double

The initial step.

numericSteps

List<double>

The numeric steps.

Returns

double

Flatten(double)

Converts the point to flattened range.

Declaration

cs-api-definition
public double Flatten(double point)

Parameters

point

double

The point.

Returns

double

GetHashCode()

Returns a hash code for this instance.

Declaration

cs-api-definition
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()

RoundMinValue(double, double)

Rounds the min value.

Declaration

cs-api-definition
protected double RoundMinValue(double minValue, double range)

Parameters

minValue

double

The min value.

range

double

The range.

Returns

double

ScaleRange(double)

Scales the range.

Declaration

cs-api-definition
public double ScaleRange(double range)

Parameters

range

double

The range.

Returns

double

ScaleToRange(double)

Scales to range.

Declaration

cs-api-definition
public double ScaleToRange(double point)

Parameters

point

double

The point.

Returns

double

UpdateRange()

Updates the range.

Declaration

cs-api-definition
protected virtual void UpdateRange()

Operators

operator !=(AutoRange, AutoRange)

Implements the operator !=.

Declaration

cs-api-definition
public static bool operator !=(AutoRange range1, AutoRange range2)

Parameters

range1

AutoRange

The range1.

range2

AutoRange

The range2.

Returns

bool

The result of the operator.

operator ==(AutoRange, AutoRange)

Implements the operator ==.

Declaration

cs-api-definition
public static bool operator ==(AutoRange range1, AutoRange range2)

Parameters

range1

AutoRange

The range1.

range2

AutoRange

The range2.

Returns

bool

The result of the operator.