StructSparkValueRange<T>
Represents a structure that defines a range of two IComparable structures - like Single or Double.
Definition
Namespace:Telerik.WinControls.UI.Sparkline
Assembly:Telerik.WinControls.UI.dll
Type Parameters:
T
Must implement the IComparable interface.
Syntax:
public struct SparkValueRange<T> where T : struct, IComparable<T>
Inherited Members
Constructors
SparkValueRange(T, T)
Initializes a new instance of the SparkValueRange<T> struct.
Declaration
public SparkValueRange(T min, T max)
Parameters
min
T
The min.
max
T
The max.
Fields
Empty
Empty value range where minimum and maximum are set to their default(T) value.
Declaration
public static readonly SparkValueRange<T> Empty
Field Value
Properties
Maximum
Gets or sets the maximum value.
Declaration
public T Maximum { get; set; }
Property Value
T
Minimum
Gets or sets the minimum value.
Declaration
public T Minimum { get; set; }
Property Value
T
Methods
Equals(object)
Determines whether the specified object is equal to this instance.
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
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
value
T
Returns
IsInRangeInclusive(double)
Determines whether the specified value is within the range, including its minimum and maximum values.
Operators
operator !=(SparkValueRange<T>, SparkValueRange<T>)
Determines whether two ranges are not equal.
Declaration
public static bool operator !=(SparkValueRange<T> r1, SparkValueRange<T> r2)
Parameters
r1
r2
Returns
operator ==(SparkValueRange<T>, SparkValueRange<T>)
Determines whether two ranges are equal.
Declaration
public static bool operator ==(SparkValueRange<T> r1, SparkValueRange<T> r2)
Parameters
r1
r2
Returns