DayView.WorkTime Property

Gets or sets the work time interval for a Day View.

Namespace: DevExpress.Web.ASPxScheduler

Assembly: DevExpress.Web.ASPxScheduler.v20.2.dll

Declaration

public TimeOfDayInterval WorkTime { get; set; }
Public Property WorkTime As TimeOfDayInterval

Property Value

Type Description
TimeOfDayInterval

A TimeOfDayInterval value representing the work time interval.

Available values:

Show 20 items
Name Description
Changing

Fires before the TimeOfDayInterval is changed.

Changed

Fires when the TimeOfDayInterval is changed.

Duration

Gets the duration of the time of day interval.

End

Gets or sets the end time of the time of day interval.

Start

Gets or sets the start time of the time of day interval.

Empty

Returns an empty time of day interval.

Day

Gets the time interval of a day.

Assign(TimeOfDayInterval)

Copies all settings from the object passed as the parameter to the current object.

ToString()

Returns the textual representation of the time-of-day interval.

GetHashCode()

Gets the hash code (the number) that corresponds to the value of the current TimeOfDayInterval object.

Equals(Object)

Determines whether the specified object is equal to the current TimeOfDayInterval instance.

ToTimeInterval(DateTime)

Converts the TimeOfDayInterval value to the TimeInterval type starting from the specified date.

ToTimeInterval()

Converts the TimeOfDayInterval value to the TimeInterval type.

IntersectsWithExcludingBounds(TimeOfDayInterval)

Checks if the current time of day interval intersects with the specified time of day interval. The boundaries of the time intervals are excluded from the check.

Intersect(TimeOfDayInterval, TimeOfDayInterval)

Returns a time-of-day interval which is the intersection of the two specified time-of-day intervals.

Union(TimeOfDayInterval, TimeOfDayInterval)

Returns a time of day interval which is composed of two specified time of day intervals.

Contains(TimeSpan)

Determines whether the time of day interval contains the specified time.

Clone()

Creates a copy of the current TimeOfDayInterval object.

TimeOfDayInterval(TimeSpan, TimeSpan)

Initializes a new instance of the TimeOfDayInterval class with the specified start time and end time.

TimeOfDayInterval()

Initializes a new instance of the TimeOfDayInterval class with the default settings.

Remarks

When the DayView.ShowWorkTimeOnly property is set to true, use the WorkTime property to restrict the data shown in a Day View to the hours in a working day. Note that working hours have a lighter color than non-working hours. This allows end-users to easily distinguish these two periods with the Day View, if both working and non-working hours are visible.

NOTE

If the DayView.ShowWorkTimeOnly option is set to true, and the DayView.WorkTime and DayView.VisibleTime properties are set to different intervals, the Scheduler view displays an interval that is an intersection of the specified intervals.

See Also