Skip to main content

TimeSlot Class

An individual time slot item.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v24.1.Core.Desktop.dll

NuGet Package: DevExpress.Scheduler.CoreDesktop

Declaration

public class TimeSlot :
    UserInterfaceObject

The following members return TimeSlot objects:

Remarks

The TimeSlot class represents an individual item within the DayView.TimeSlots collection maintained by the DayView (or WorkWeekView). Items of the DayView.TimeSlots collection (time slots) are exposed to end-users via the time ruler’s context menu thus allowing end-users to select the desired time scale increment for the scheduling area.

TimeSlot.gif

As a descendant of the UserInterfaceObject class, the TimeSlot class has the UserInterfaceObject.DisplayName and UserInterfaceObject.MenuCaption properties which help the time slot object to be identified within the design-time TimeSlot Collection Editor dialog and the time ruler’s context menu, respectively.

Additionally, the TimeSlot class declares the TimeSlot.Value property that specifies the time interval associated with the time slot item. If a time slot is selected by an end-user within the time ruler’s context menu, its associated time interval is used to specify the value of the View’s DayView.TimeScale property.

A particular TimeSlot object can be accessed within the TimeSlotCollection by using the collection’s TimeSlotCollection.Item property.

Implements

Inheritance

See Also