Back to Devexpress

AppointmentDisplayOptions.TimeDisplayType Property

corelibraries-devexpress-dot-xtrascheduler-dot-appointmentdisplayoptions.md

latest4.7 KB
Original Source

AppointmentDisplayOptions.TimeDisplayType Property

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

Declaration

csharp
public AppointmentTimeDisplayType TimeDisplayType { get; set; }
vb
Public Property TimeDisplayType As AppointmentTimeDisplayType

Property Value

TypeDescription
AppointmentTimeDisplayType

A AppointmentDisplayOptions.TimeDisplayType enumeration member.

|

Available values:

NameDescription
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.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to TimeDisplayType
SchedulerViewInfoBase

.AppointmentDisplayOptions .TimeDisplayType

| | TimeCellsControlBase |

.AppointmentDisplayOptions .TimeDisplayType

| | SchedulerViewBase |

.AppointmentDisplayOptions .TimeDisplayType

|

Remarks

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.

asp-net-mvc-scheduler-fetch-appointment-event/CS/DevExpressMvcSchedulerFetchAppointments/Models/SchedulerSettingsHelper.cs#L33

csharp
settings.Views.MonthView.AppointmentDisplayOptions.AppointmentAutoHeight = true;
settings.Views.MonthView.AppointmentDisplayOptions.TimeDisplayType = AppointmentTimeDisplayType.Clock;
settings.Views.DayView.Styles.ScrollAreaHeight = 250;

asp-net-mvc-scheduler-fetch-appointment-event/VB/DevExpressMvcSchedulerFetchAppointments/Models/SchedulerSettingsHelper.vb#L31

vb
settings.Views.MonthView.AppointmentDisplayOptions.AppointmentAutoHeight = True
settings.Views.MonthView.AppointmentDisplayOptions.TimeDisplayType = AppointmentTimeDisplayType.Clock
settings.Views.DayView.Styles.ScrollAreaHeight = 250

See Also

AppointmentDisplayOptions Class

AppointmentDisplayOptions Members

DevExpress.XtraScheduler Namespace