A newer version of this page is available. Switch to the current version.

TimeSlot Class

An individual time slot item.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v18.2.Core.dll

Declaration

public class TimeSlot :
    UserInterfaceObject
Public Class TimeSlot
    Inherits UserInterfaceObject

Related API Members

The following members accept/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