ClassDateSpanExtensions
Class
Extension methods for IDateSpan interface.
Definition
Namespace:Telerik.Windows.Controls.ScheduleView
Assembly:Telerik.Windows.Controls.ScheduleView.dll
Syntax:
cs-api-definition
public static class DateSpanExtensions
Inheritance: objectDateSpanExtensions
Methods
Duration(IDateSpan)
Gets the duration of the specified date span.
IntersectsWith(IDateSpan, IDateSpan)
Checks whether do two spans intersect with each other or not.
Translate(IDateSpan, TimeSpan)
Translates a DateSpan with a specified TimeSpan.
Declaration
cs-api-definition
public static DateSpan Translate(this IDateSpan dateSpan, TimeSpan span)
Parameters
dateSpan
The DateSpan to be translated.
span
The TimeSpan the DateSpan to be translated with.
Returns
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.