Skip to main content

DayViewAppointmentDisplayOptionsEx.ShowAllDayAppointmentStatusVertically Property

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.v24.1.dll

NuGet Package: DevExpress.Win.Scheduler

Declaration

[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool ShowAllDayAppointmentStatusVertically { get; set; }

Property Value

Type Default Description
Boolean true

True, to display all-day appointment status as a vertical strip on the left; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to ShowAllDayAppointmentStatusVertically
DayView
.AppointmentDisplayOptions .ShowAllDayAppointmentStatusVertically

Remarks

ShowAllDayAppointmentStatusVertically = True ShowAllDayAppointmentStatusVertically = False
ShowAllDayAppointmentStatusVertically-True ShowAllDayAppointmentStatusVertically-False

Example

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;
}
See Also