corelibraries-devexpress-dot-xtrascheduler-dot-appointmentdisplayoptions.md
Specifies how the start and end time of the appointment should be displayed - using symbols or digits.
Namespace : DevExpress.XtraScheduler
Assembly : DevExpress.XtraScheduler.v25.2.Core.Desktop.dll
NuGet Package : DevExpress.Scheduler.CoreDesktop
public AppointmentTimeDisplayType TimeDisplayType { get; set; }
Public Property TimeDisplayType As AppointmentTimeDisplayType
| Type | Description |
|---|---|
| AppointmentTimeDisplayType |
A AppointmentDisplayOptions.TimeDisplayType enumeration member.
|
Available values:
| Name | Description |
|---|---|
| Auto |
The start and end time is automatically shown either as text or as clock.
| | Clock |
The start and end time is always shown as clock.
| | Text |
The start and end time is always shown as text.
|
You can access this nested property as listed below:
| Object Type | Path to TimeDisplayType |
|---|---|
| SchedulerViewInfoBase |
.AppointmentDisplayOptions .TimeDisplayType
| | TimeCellsControlBase |
.AppointmentDisplayOptions .TimeDisplayType
| | SchedulerViewBase |
.AppointmentDisplayOptions .TimeDisplayType
|
Set this property to AppointmentTimeDisplayType.Clock for displaying the start and end time as clock symbols.
Clock symbols are not displayed in vertical appointments , i.e., appointments that span vertical. An example of such an appointment is an ordinary appointment in the DayView which is shorter than a day. Vertical appointments always display time as text.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the TimeDisplayType property.
Note
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.
settings.Views.MonthView.AppointmentDisplayOptions.AppointmentAutoHeight = true;
settings.Views.MonthView.AppointmentDisplayOptions.TimeDisplayType = AppointmentTimeDisplayType.Clock;
settings.Views.DayView.Styles.ScrollAreaHeight = 250;
settings.Views.MonthView.AppointmentDisplayOptions.AppointmentAutoHeight = True
settings.Views.MonthView.AppointmentDisplayOptions.TimeDisplayType = AppointmentTimeDisplayType.Clock
settings.Views.DayView.Styles.ScrollAreaHeight = 250
See Also
AppointmentDisplayOptions Class