ValueRange<T>
Represents a structure that defines a range of two IComparable structures - like Single or Double.
Definition
Namespace:Telerik.Charting
Assembly:Telerik.Windows.Controls.Chart.dll
Type Parameters:
T
Must implement the IComparable interface.
Syntax:
public struct ValueRange<T> where T : struct, IComparable<T>
Inherited Members
Constructors
Initializes a new instance of the ValueRange<T> struct.
public ValueRange(T min, T max)
The minimum value.
maxTThe maximum value.
Fields
Empty value range where minimum and maximum are set to their default(T) value.
public static readonly ValueRange<T> Empty
Properties
Gets or sets the maximum value of the range.
public T Maximum { get; set; }
Gets or sets the minimum value of the range.
public T Minimum { get; set; }
Methods
Returns a hash code for this instance.
public override int GetHashCode()
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
Overrides:
Determines whether the specified value is within the range, excluding its minimum and maximum values.
public bool IsInRangeExclusive(T value)
The tested value.
Returns:true if the value is within the range, excluding its minimum and maximum; otherwise, false.
Determines whether the specified value is within the range, including its minimum and maximum values.
public bool IsInRangeInclusive(T value)
The tested value.
Returns:true if the value is within the range, including its minimum and maximum; otherwise, false.
Operators
Determines whether two ranges are not equal.
public static bool operator !=(ValueRange<T> range1, ValueRange<T> range2)
The first range.
range2ValueRange<T>The second range.
Returns:true if the operands are not equal; otherwise, false.
Determines whether two ranges are not equal.
public static bool operator ==(ValueRange<T> range1, ValueRange<T> range2)
The first range.
range2ValueRange<T>The second range.
Returns:true if the operands are equal; otherwise, false.