Class DateSpanExtensions
Extension methods for IDate
Inheritance
Namespace: Telerik.Windows.Controls.ScheduleView
Assembly: Telerik.Windows.Controls.ScheduleView.dll
Syntax
public static class DateSpanExtensions : Object
Methods
Contains(IDateSpan, DateTime)
Determines whether Date
Declaration
public static bool Contains(this IDateSpan source, DateTime date)
Parameters
IDate The source. |
System. The date. |
Returns
System.
|
Contains(IDateSpan, IDateSpan)
Declaration
public static bool Contains(this IDateSpan source, IDateSpan other)
Parameters
Returns
System.
|
Duration(IDateSpan)
Gets the duration of the specified date span.
Declaration
public static TimeSpan Duration(this IDateSpan dateSpan)
Parameters
IDate The date span. |
Returns
System. Duration of the date span as distinction of end and start. |
IntersectsWith(IDateSpan, IDateSpan)
Checks whether do two spans intersect with each other or not.
Declaration
public static bool IntersectsWith(this IDateSpan source, IDateSpan other)
Parameters
Returns
System.
|
Translate(IDateSpan, TimeSpan)
Translates a DateSpan with a specified TimeSpan.
Declaration
public static DateSpan Translate(this IDateSpan dateSpan, TimeSpan span)
Parameters
IDate The DateSpan to be translated. |
System. The TimeSpan the DateSpan to be translated with. |
Returns
Date The translated DateSpan. If we translate "2010/05/05 15:30 - 2010/05/06 15:00" with 03:00 the result will be "2010/05/05 18:30 - 2010/05/06 18:00". |
Validate(IDateSpan)
Validates the specified date span.
Declaration
public static bool Validate(this IDateSpan dateSpan)
Parameters
IDate The date span. |
Returns
System.
|