windowsforms-devexpress-dot-xtrascheduler-dot-dayviewappointmentdisplayoptionsex.md
Gets or sets whether to display an all-day appointment status strip vertically on the left or horizontally at the top.
Namespace : DevExpress.XtraScheduler
Assembly : DevExpress.XtraScheduler.v25.2.dll
NuGet Package : DevExpress.Win.Scheduler
[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool ShowAllDayAppointmentStatusVertically { get; set; }
<DefaultValue(True)>
<XtraSerializableProperty>
Public Overridable Property ShowAllDayAppointmentStatusVertically As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
True , to display all-day appointment status as a vertical strip on the left; otherwise, false.
|
You can access this nested property as listed below:
| Object Type | Path to ShowAllDayAppointmentStatusVertically |
|---|---|
| DayView |
.AppointmentDisplayOptions .ShowAllDayAppointmentStatusVertically
|
| ShowAllDayAppointmentStatusVertically = True | ShowAllDayAppointmentStatusVertically = False |
|---|---|
This code illustrates how to handle the SchedulerControl.AppointmentViewInfoCustomizing event to change the AppointmentViewInfo.StatusDisplayType for an appointment whose Appointment.Description contains a particular string.
For better visibility, the DayViewAppointmentDisplayOptionsEx.ShowAllDayAppointmentStatusVertically property is set to false.
Appointment apt = scheduler.ActiveView.GetAppointments()[0];
apt.End = apt.End.AddDays(1);
apt.Description = "Time";
scheduler.ActiveViewType = SchedulerViewType.Day;
scheduler.DayView.AppointmentDisplayOptions.AllDayAppointmentsStatusDisplayType = AppointmentStatusDisplayType.Bounds;
scheduler.DayView.AppointmentDisplayOptions.ShowAllDayAppointmentStatusVertically = false;
scheduler.AppointmentViewInfoCustomizing += scheduler_AppointmentViewInfoCustomizing;
public static void scheduler_AppointmentViewInfoCustomizing(object sender, AppointmentViewInfoCustomizingEventArgs e) {
if (e.ViewInfo.Description.Contains("Time"))
e.ViewInfo.StatusDisplayType = AppointmentStatusDisplayType.Time;
}
Dim apt As Appointment = scheduler.ActiveView.GetAppointments()(0)
apt.End = apt.End.AddDays(1)
apt.Description = "Time"
scheduler.ActiveViewType = SchedulerViewType.Day
scheduler.DayView.AppointmentDisplayOptions.AllDayAppointmentsStatusDisplayType = AppointmentStatusDisplayType.Bounds
scheduler.DayView.AppointmentDisplayOptions.ShowAllDayAppointmentStatusVertically = False
AddHandler scheduler.AppointmentViewInfoCustomizing, AddressOf scheduler_AppointmentViewInfoCustomizing
Public Shared Sub scheduler_AppointmentViewInfoCustomizing_1(ByVal sender As Object, ByVal e As AppointmentViewInfoCustomizingEventArgs)
If e.ViewInfo.Description.Contains("Time") Then
e.ViewInfo.StatusDisplayType = AppointmentStatusDisplayType.Time
End If
End Sub
See Also
DayViewAppointmentDisplayOptionsEx Class