An individual time slot item.
NuGet Package: DevExpress.Scheduler.CoreDesktop
public class TimeSlot : UserInterfaceObject
Public Class TimeSlot Inherits UserInterfaceObject
Related API Members
The following members return TimeSlot objects:
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.
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.