Struct ValueRange<T>
Represents a structure that defines a range of two IComparable structures - like Single or Double.
Inherited Members
Namespace: Telerik.Charting
Assembly: Telerik.Windows.Controls.Chart.dll
Syntax
public struct ValueRange<T>
where T : struct, IComparable<T>
Type Parameters
T
Must implement the System.IComparable interface. |
Constructors
ValueRange(T, T)
Initializes a new instance of the ValueRange<T> struct.
Declaration
public ValueRange(T min, T max)
Parameters
T
min
The minimum value. |
T
max
The maximum value. |
Fields
Empty
Empty value range where minimum and maximum are set to their default(T) value.
Declaration
public static readonly ValueRange<T> Empty
Field Value
ValueRange<T>
|
Properties
Maximum
Gets or sets the maximum value of the range.
Declaration
public T Maximum { get; set; }
Property Value
T
|
Minimum
Gets or sets the minimum value of the range.
Declaration
public T Minimum { get; set; }
Property Value
T
|
Methods
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
|
Overrides
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. |
Overrides
IsInRangeExclusive(T)
Determines whether the specified value is within the range, excluding its minimum and maximum values.
Declaration
public bool IsInRangeExclusive(T value)
Parameters
T
value
The tested value. |
Returns
System.Boolean
|
IsInRangeInclusive(T)
Determines whether the specified value is within the range, including its minimum and maximum values.
Declaration
public bool IsInRangeInclusive(T value)
Parameters
T
value
The tested value. |
Returns
System.Boolean
|
Operators
Equality(ValueRange<T>, ValueRange<T>)
Determines whether two ranges are not equal.
Declaration
public static bool operator ==(ValueRange<T> range1, ValueRange<T> range2)
Parameters
ValueRange<T>
range1
The first range. |
ValueRange<T>
range2
The second range. |
Returns
System.Boolean
|
Inequality(ValueRange<T>, ValueRange<T>)
Determines whether two ranges are not equal.
Declaration
public static bool operator !=(ValueRange<T> range1, ValueRange<T> range2)
Parameters
ValueRange<T>
range1
The first range. |
ValueRange<T>
range2
The second range. |
Returns
System.Boolean
|