Class DateSpan
A class that represents time range.
Inherited Members
Namespace: Telerik.Windows.Controls.ScheduleView
Assembly: Telerik.Windows.Controls.ScheduleView.dll
Syntax
public class DateSpan : ViewModelBase, INotifyPropertyChanged, IDisposable, IDateSpan
Constructors
DateSpan()
DateSpan(DateTime, DateTime)
Initializes a new instance of the DateSpan class with the given start and end time.
Declaration
public DateSpan(DateTime start, DateTime end)
Parameters
System.DateTime
start
The start time of the instance. |
System.DateTime
end
The end of the instance. |
DateSpan(DateTime, TimeSpan)
Initializes a new instance of the DateSpan class with the given start time and duration.
Declaration
public DateSpan(DateTime start, TimeSpan duration)
Parameters
System.DateTime
start
The start time of the instance. |
System.TimeSpan
duration
The duration of the instance. |
DateSpan(IDateSpan)
Initializes a new instance of the DateSpan class from another date span instance.
Declaration
public DateSpan(IDateSpan other)
Parameters
IDateSpan
other
Another date span instance that is used to create a new instance. |
Properties
End
Gets or sets the end System.DateTime of the IDateSpan.
Declaration
public DateTime End { get; set; }
Property Value
System.DateTime
|
Implements
Start
Gets or sets the start System.DateTime of the IDateSpan.
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
|
Overrides
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. |
Overrides
ToString()
Returns a System.String that represents this instance.
Declaration
public override string ToString()
Returns
System.String
A System.String that represents this instance. |