Class Range<T>
Represents the class for Range.
Inheritance
System.Object
Range<T>
Namespace: Syncfusion.UI.Xaml.Gantt
Assembly: Syncfusion.SfGantt.UWP.dll
Syntax
public class Range<T> : Object where T : IComparable<T>
Type Parameters
Name | Description |
---|---|
T | Type the data. |
Constructors
Range(T, T)
Initializes a new instance of the Range<T> class.
Declaration
public Range(T startValue, T endValue)
Parameters
Type | Name | Description |
---|---|---|
T | startValue | Start value of the range. |
T | endValue | End range value. |
Properties
Delta
Gets the Delta value
Declaration
public double Delta { get; }
Property Value
Type |
---|
System.Double |
End
Gets the End value
Declaration
public T End { get; }
Property Value
Type |
---|
T |
IsEmpty
Gets or sets a value indicating whether the range is empty.
Declaration
public bool IsEmpty { get; set; }
Property Value
Type |
---|
System.Boolean |
Start
Gets the Start value
Declaration
public T Start { get; }
Property Value
Type |
---|
T |
Methods
Contains(T)
To check whether the value is within the range.
Declaration
public bool Contains(T value)
Parameters
Type | Name | Description |
---|---|---|
T | value | value to compare. |
Returns
Type | Description |
---|---|
System.Boolean | Returns whether it is inside the range. |