ClassDateTimeInterval
Represents a time interval defined by two DateTime values.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
[TypeConverter(typeof(DateTimeIntervalConverter))]
public class DateTimeInterval : INotifyPropertyChanged, IEquatable<DateTimeInterval>, ICloneable
Inheritance: objectDateTimeInterval
Implements:
Constructors
DateTimeInterval()
Initializes a new instance of the DateTimeInterval class.
Declaration
public DateTimeInterval()
DateTimeInterval(DateTime, DateTime)
Initializes a new instance of the DateTimeInterval class.
DateTimeInterval(DateTime, TimeSpan)
Initializes a new instance of the DateTimeInterval class.
Properties
Duration
Gets or sets the duration of the interval.
Declaration
[Browsable(false)]
public virtual TimeSpan Duration { get; set; }
Property Value
The duration of the interval.
Empty
Represents an empty DateTimeInterval value.
Declaration
public static DateTimeInterval Empty { get; }
Property Value
End
Gets or sets the end of the interval.
Declaration
public virtual DateTime End { get; set; }
Property Value
The end of the interval.
Methods
Contains(DateTime)
Determines whether the specified date is contained in this interval.
Contains(DateTimeInterval)
Determines whether this interval contains another interval.
Declaration
public bool Contains(DateTimeInterval other)
Parameters
other
The other.
Returns
true if this inerval contains the other interval; otherwise, false.
Equals(DateTimeInterval)
Declaration
public bool Equals(DateTimeInterval other)
Parameters
other
Returns
Implements
IntersectsWith(DateTimeInterval)
Determines whether this interval intersects with the specified interval.
Declaration
public bool IntersectsWith(DateTimeInterval other)
Parameters
other
The other interval.
Returns
IntersectsWithGreaterEnd(DateTimeInterval)
Determines whether this interval intersects with the specified interval.
Declaration
public bool IntersectsWithGreaterEnd(DateTimeInterval other)
Parameters
other
The other interval.
Returns
IsNullOrEmpty(DateTimeInterval)
Determines whether the specified DateTimeInterval is null or empty.
Declaration
public static bool IsNullOrEmpty(DateTimeInterval interval)
Parameters
interval
The interval.
Returns
true if the specified DateTimeInterval is null or empty; otherwise, false.
OnPropertyChanged(string)
Declaration
protected virtual void OnPropertyChanged(string propertyName)
Parameters
propertyName
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Value
Implements