DateTimeInterval
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
Initializes a new instance of the DateTimeInterval class.
public DateTimeInterval()
Initializes a new instance of the DateTimeInterval class.
Initializes a new instance of the DateTimeInterval class.
Properties
Gets or sets the duration of the interval.
[Browsable(false)]
public virtual TimeSpan Duration { get; set; }
The duration of the interval.
Represents an empty DateTimeInterval value.
public static DateTimeInterval Empty { get; }
Gets or sets the end of the interval.
public virtual DateTime End { get; set; }
The end of the interval.
Methods
Determines whether this interval contains another interval.
public bool Contains(DateTimeInterval other)
The other.
Returns:true if this inerval contains the other interval; otherwise, false.
Determines whether this interval intersects with the specified interval.
public bool IntersectsWith(DateTimeInterval other)
The other interval.
Returns:Determines whether this interval intersects with the specified interval.
public bool IntersectsWithGreaterEnd(DateTimeInterval other)
The other interval.
Returns:Determines whether the specified DateTimeInterval is null or empty.
public static bool IsNullOrEmpty(DateTimeInterval interval)
The interval.
Returns:true if the specified DateTimeInterval is null or empty; otherwise, false.
Events
public event PropertyChangedEventHandler PropertyChanged
Implements: