skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class AutoRange

Inheritance
System.Object
AutoRange
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 true; otherwise, false.

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

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

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 - true; otherwise, false.

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 - true; otherwise, false.

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

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

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.

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.