Class DateRange
A class that represents time range.
Inherited Members
Namespace: Telerik.Maui.Controls.Scheduler
Assembly: Telerik.Maui.Controls.dll
Syntax
public class DateRange : NotifyPropertyChangedBase, INotifyPropertyChanged, IDateRange
Constructors
DateRange()
DateRange(DateTime, DateTime)
Initializes a new instance of the DateRange class with the given start and end time.
Declaration
public DateRange(DateTime start, DateTime end)
Parameters
System.DateTime
start
The start time of the instance. |
System.DateTime
end
The end of the instance. |
DateRange(DateTime, TimeSpan)
Initializes a new instance of the DateRange class with the given start time and duration.
Declaration
public DateRange(DateTime start, TimeSpan duration)
Parameters
System.DateTime
start
The start time of the instance. |
System.TimeSpan
duration
The duration of the instance. |
DateRange(IDateRange)
Initializes a new instance of the DateRange class from another date span instance.
Declaration
public DateRange(IDateRange other)
Parameters
IDateRange
other
Another date span instance that is used to create a new instance. |
Properties
End
Gets or sets the end System.DateTime of the IDateRange.
Declaration
public DateTime End { get; set; }
Property Value
System.DateTime
|
Implements
Start
Gets or sets the start System.DateTime of the IDateRange.
Declaration
public DateTime Start { get; set; }
Property Value
System.DateTime
|
Implements
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
|
GetHashCode()
Serves as a hash function for a particular type.
Declaration
public override int GetHashCode()
Returns
System.Int32
A hash code for the current System.Object. |
ToString()
Returns a System.String that represents this instance.
Declaration
public override string ToString()
Returns
System.String
A System.String that represents this instance. |