corelibraries-devexpress-dot-xtrascheduler-dot-appointmentdisplayoptions-679a3244.md
Specifies whether the end time should be visible for the appointment.
Namespace : DevExpress.XtraScheduler
Assembly : DevExpress.XtraScheduler.v25.2.Core.Desktop.dll
NuGet Package : DevExpress.Scheduler.CoreDesktop
[DefaultValue(AppointmentTimeVisibility.Auto)]
public virtual AppointmentTimeVisibility EndTimeVisibility { get; set; }
<DefaultValue(AppointmentTimeVisibility.Auto)>
Public Overridable Property EndTimeVisibility As AppointmentTimeVisibility
| Type | Default | Description |
|---|---|---|
| AppointmentTimeVisibility | Auto |
An AppointmentTimeVisibility enumeration specifying whether the appointment end time should be displayed.
|
Available values:
| Name | Description |
|---|---|
| Auto |
Whether the appointment time is shown or not is determined automatically according to the current scheduler view’s settings.
| | Always |
Appointment time is always shown.
| | Never |
Appointment time is never shown.
|
You can access this nested property as listed below:
| Object Type | Path to EndTimeVisibility |
|---|---|
| SchedulerViewInfoBase |
.AppointmentDisplayOptions .EndTimeVisibility
| | TimeCellsControlBase |
.AppointmentDisplayOptions .EndTimeVisibility
| | SchedulerViewBase |
.AppointmentDisplayOptions .EndTimeVisibility
|
When the EndTimeVisibility is set to AppointmentTimeVisibility.Auto, the appointment’s end time is not shown in the following scenarios:
The end time visibility may be affected by the AppointmentDisplayOptions.SnapToCellsMode property. Depending on its value, the appointment will appear the following way.
|
Property values
|
Result
| | --- | --- | |
EndTimeVisibility = Auto** SnapToCellsMode = Auto | Disabled | Never**
|
| |
EndTimeVisibility =Auto** SnapToCellsMode =Always**
|
|
See Also
AppointmentDisplayOptions Class