Class DateTimeInterval
Represents a time interval defined by two DateTime values.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.Scheduler.dll
Syntax
public class DateTimeInterval : INotifyPropertyChanged, IEquatable<DateTimeInterval>, ICloneable
Constructors
DateTimeInterval()
DateTimeInterval(DateTime, DateTime)
Initializes a new instance of the DateTimeInterval class.
Declaration
public DateTimeInterval(DateTime start, DateTime end)
Parameters
System.DateTime
start
The start of the interval. |
System.DateTime
end
The end of the interval. |
DateTimeInterval(DateTime, TimeSpan)
Initializes a new instance of the DateTimeInterval class.
Declaration
public DateTimeInterval(DateTime start, TimeSpan duration)
Parameters
System.DateTime
start
The start of the interval. |
System.TimeSpan
duration
The duration of the interval. |
Properties
Duration
Gets or sets the duration of the interval.
Declaration
public virtual TimeSpan Duration { get; set; }
Property Value
System.TimeSpan
The duration of the interval. |
Empty
Represents an empty DateTimeInterval value.
Declaration
public static DateTimeInterval Empty { get; }
Property Value
DateTimeInterval
|
End
Gets or sets the end of the interval.
Declaration
public virtual DateTime End { get; set; }
Property Value
System.DateTime
The end of the interval. |
Start
Gets or sets the start the start of the interval.
Declaration
public virtual DateTime Start { get; set; }
Property Value
System.DateTime
The start the interval. |
Methods
Clone()
Contains(DateTime)
Determines whether the specified date is contained in this interval.
Declaration
public bool Contains(DateTime date)
Parameters
System.DateTime
date
The date. |
Returns
System.Boolean
|
Contains(DateTimeInterval)
Determines whether this interval contains another interval.
Declaration
public bool Contains(DateTimeInterval other)
Parameters
DateTimeInterval
other
The other. |
Returns
System.Boolean
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
|
Returns
System.Boolean
|
Overrides
Equals(DateTimeInterval)
Declaration
public bool Equals(DateTimeInterval other)
Parameters
DateTimeInterval
other
|
Returns
System.Boolean
|
Implements
GetHashCode()
Declaration
public override int GetHashCode()
Returns
System.Int32
|
Overrides
IntersectsWith(DateTimeInterval)
Determines whether this interval intersects with the specified interval.
Declaration
public bool IntersectsWith(DateTimeInterval other)
Parameters
DateTimeInterval
other
The other interval. |
Returns
System.Boolean
|
IntersectsWithGreaterEnd(DateTimeInterval)
Determines whether this interval intersects with the specified interval.
Declaration
public bool IntersectsWithGreaterEnd(DateTimeInterval other)
Parameters
DateTimeInterval
other
The other interval. |
Returns
System.Boolean
|
IsNullOrEmpty(DateTimeInterval)
Determines whether the specified DateTimeInterval is null or empty.
Declaration
public static bool IsNullOrEmpty(DateTimeInterval interval)
Parameters
DateTimeInterval
interval
The interval. |
Returns
System.Boolean
|
OnPropertyChanged(String)
Declaration
protected virtual void OnPropertyChanged(string propertyName)
Parameters
System.String
propertyName
|
ToString()
Declaration
public override string ToString()
Returns
System.String
|
Overrides
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
System.ComponentModel.PropertyChangedEventHandler
|
Explicit Interface Implementations
ICloneable.Clone()
Declaration
object ICloneable.Clone()
Returns
System.Object
|