Class RangeExtensions
Inheritance
Namespace: Telerik.Windows.Core
Assembly: Telerik.Windows.Scheduling.Core.dll
Syntax
public static class RangeExtensions : Object
Methods
Clamp<T>(Range<T>, T)
Declaration
public static T Clamp<T>(this Range<T> range, T value)
where T : IComparable, IEquatable<T>
Parameters
Range<T>
range
|
T
value
|
Returns
T
|
Type Parameters
T
|
ContainsValue<T>(Range<T>, T)
Declaration
public static bool ContainsValue<T>(this Range<T> range, T value)
where T : IComparable, IEquatable<T>
Parameters
Range<T>
range
|
T
value
|
Returns
System.Boolean
|
Type Parameters
T
|
GetLength(Range<DateTime>)
Declaration
public static TimeSpan GetLength(this Range<DateTime> range)
Parameters
Range<System.DateTime>
range
|
Returns
System.TimeSpan
|
GetLength(Range<Double>)
Declaration
public static double GetLength(this Range<double> range)
Parameters
Range<System.Double>
range
|
Returns
System.Double
|
GetLength(Range<Int32>)
Declaration
public static int GetLength(this Range<int> range)
Parameters
Range<System.Int32>
range
|
Returns
System.Int32
|
GetLength(Range<Int64>)
Declaration
public static long GetLength(this Range<long> range)
Parameters
Range<System.Int64>
range
|
Returns
System.Int64
|
GetLength(Range<TimeSpan>)
Declaration
public static TimeSpan GetLength(this Range<TimeSpan> range)
Parameters
Range<System.TimeSpan>
range
|
Returns
System.TimeSpan
|
IntersectsWith(Range<Int32>, Int32, Int32)
Declaration
public static bool IntersectsWith(this Range<int> range1, int range2Start, int range2End)
Parameters
Range<System.Int32>
range1
|
System.Int32
range2Start
|
System.Int32
range2End
|
Returns
System.Boolean
|
IntersectsWith(Range<Int32>, Range<Int32>)
Declaration
public static bool IntersectsWith(this Range<int> range1, Range<int> range2)
Parameters
Range<System.Int32>
range1
|
Range<System.Int32>
range2
|
Returns
System.Boolean
|
IntersectsWith(Range<Int64>, Range<Int64>)
Declaration
public static bool IntersectsWith(this Range<long> range1, Range<long> range2)
Parameters
Range<System.Int64>
range1
|
Range<System.Int64>
range2
|
Returns
System.Boolean
|
IntersectsWith<T>(Range<T>, Range<T>)
Declaration
public static bool IntersectsWith<T>(this Range<T> range1, Range<T> range2)
where T : IComparable, IEquatable<T>
Parameters
Range<T>
range1
|
Range<T>
range2
|
Returns
System.Boolean
|
Type Parameters
T
|
Normalize(Range<Double>)
Declaration
public static Range<double> Normalize(this Range<double> range)
Parameters
Range<System.Double>
range
|
Returns
Range<System.Double>
|
Normalize(Range<Int32>)
Declaration
public static Range<int> Normalize(this Range<int> range)
Parameters
Range<System.Int32>
range
|
Returns
Range<System.Int32>
|
Normalize(Range<Int64>)
Declaration
public static Range<long> Normalize(this Range<long> range)
Parameters
Range<System.Int64>
range
|
Returns
Range<System.Int64>
|
Offset(Range<Double>, Double)
Declaration
public static Range<double> Offset(this Range<double> range, double value)
Parameters
Range<System.Double>
range
|
System.Double
value
|
Returns
Range<System.Double>
|
Offset(Range<Int32>, Int32)
Declaration
public static Range<int> Offset(this Range<int> range, int value)
Parameters
Range<System.Int32>
range
|
System.Int32
value
|
Returns
Range<System.Int32>
|
Offset(Range<Int64>, Int64)
Declaration
public static Range<long> Offset(this Range<long> range, long value)
Parameters
Range<System.Int64>
range
|
System.Int64
value
|
Returns
Range<System.Int64>
|
ToTicks(Range<DateTime>)
Declaration
public static Range<long> ToTicks(this Range<DateTime> range)
Parameters
Range<System.DateTime>
range
|
Returns
Range<System.Int64>
|
ToTicks(Range<TimeSpan>)
Declaration
public static Range<long> ToTicks(this Range<TimeSpan> range)
Parameters
Range<System.TimeSpan>
range
|
Returns
Range<System.Int64>
|