Back to Devexpress

Day View

windowsforms-1758-controls-and-libraries-scheduler-views-day-view.md

latest7.9 KB
Original Source

Day View

  • Oct 27, 2020
  • 3 minutes to read

The Day View gives the most detailed view of appointments for a particular day. The view is implemented by the DayView class, accessible by using the SchedulerControl.DayView property. To show the view, set the SchedulerControl.ActiveViewType property to the SchedulerViewType.Day type.

The following table lists the main properties of the DayView class which implement its basic functionality.

Member NameDescription
DayView.AllDayAreaScrollBarVisibleSpecifies whether the scrolling of the All-Day Area is enabled, and the corresponding scrollbar is visible.
DayView.AppearanceProvides access to the properties that control the appearance of the DayView’s elements.
AppointmentDisplayOptions.AppointmentAutoHeightSpecifies whether an appointment should change its height to accomodate the text it contains.
DayView.AppointmentDisplayOptionsProvides access to the DayViewAppointmentDisplayOptions class instance containing Day View appointments display options.
DayView.DayCountGets or sets the number of days that are simultaneously displayed within the Day View.
SchedulerControl.SelectedIntervalGets the time interval currently selected in the scheduler’s active view by an end-user.
DayView.ShowAllDayAreaGets or sets a value which specifies if the All-Day Area is shown when a Scheduler shows its data in the Day view.
DayView.ShowDayHeadersGets or sets a value which specifies if day headers are shown when a scheduler shows its data in the Day or the Work-Week views.
DayView.ShowMoreButtonsOnEachColumnGets or sets a value indicating whether to show the more buttons on each column in the Day View.
DayView.ShowWorkTimeOnlyGets or sets a value indicating if the scheduler should show its data only for the working hours in a Day View.
AppointmentDisplayOptions.SnapToCellsModeSpecifies whether appointments snap to the time cell borders.
DayViewAppointmentDisplayOptionsEx.ShowAllDayAppointmentStatusVerticallyGets or sets whether to display an all-day appointment status strip vertically on the left or horizontally at the top.
SchedulerViewBase.StatusDisplayTypeGets or sets how the appointment status is displayed in the Scheduler view.
DayView.StatusLineWidthGets or sets the status line width.
DayView.TimeRulersGets the View’s collection of time rulers.
DayView.TimeScaleGets or sets the time interval for the time zones and time slots in the scheduling area.
DayView.TimeSlotsGets the View’s collection of time slots.
DayView.VisibleTimeGets or sets the time of the view’s day interval.
SchedulerViewBase.GetVisibleIntervalsReturns a copy of the visible time interval collection for the current view.
SchedulerViewBase.SetVisibleIntervalsFills the visible time interval collection with new items.
DayView.WorkTimeGets or sets the work time interval for a Day View.
TopRowTimeAllows you to scroll the Day View down to the required time cell. For instance, if the property value is the TimeSpan(17, 0, 0) object, the first visible time cell is 5 p.m.

The following table lists events which allow you to customize the View’s layout.

Event NameDescription
SchedulerControl.CustomDrawDayHeaderAllows you to manually paint Day Headers.
SchedulerControl.CustomDrawDayViewAllDayAreaAllows you to manually paint All-Day Area.
SchedulerControl.CustomDrawDayViewTimeRulerAllows you to paint a Time Ruler in a custom manner.
SchedulerControl.CustomDrawGroupSeparatorAllows you to paint a Group Separator in a custom manner.
SchedulerControl.CustomDrawNavigationButtonAllows you to paint Navigation Buttons in a custom manner.
SchedulerControl.CustomDrawResourceHeaderAllows you to paint Resource Headers in a custom manner.
SchedulerControl.CustomDrawTimeCellAllows you to paint the Time Cells in a custom manner.

The following table lists services which allow you to customize the View’s layout.

ServiceDescription
TimeRulerFormatStringServiceAllows you to custom format the text of time labels within the Time Ruler.
HeaderCaptionServiceAllows you to custom format the header captions.
HeaderToolTipServiceAllows you to specify custom tooltips for the day headers