An individual time slot item.
public class TimeSlot : UserInterfaceObject
Public Class TimeSlot Inherits UserInterfaceObject
Related API Members
The following members accept/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.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the TimeSlot class.
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.