Skip to main content
A newer version of this page is available. .

DayViewAppointmentDisplayOptionsEx.AllDayAppointmentsStatusDisplayType Property

Gets or sets how the status of appointments located in the all-day area is displayed.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v19.2.dll

Declaration

[DefaultValue(AppointmentStatusDisplayType.Bounds)]
public override AppointmentStatusDisplayType AllDayAppointmentsStatusDisplayType { get; set; }

Property Value

Type Default Description
AppointmentStatusDisplayType **Bounds**

A AppointmentStatusDisplayType enumeration member specifying how the status should be displayed for the appointments in the all-day area.

Available values:

Name Description
Never

The appointment status line is invisible.

AppointmentStatusDisplayType.Never

Time

The appointment status line has the same height (if shown vertically) or width (if shown horizontally) as the time of its appointment.

AppointmentStatusDisplayType.Time

Bounds

The appointment status line has the same height (if shown vertically) or width (if shown horizontally) as the appointment bounds.

AppointmentStatusDisplayType.Bounds

Property Paths

You can access this nested property as listed below:

Object Type Path to AllDayAppointmentsStatusDisplayType
DayView
.AppointmentDisplayOptions.AllDayAppointmentsStatusDisplayType
FullWeekView
.AppointmentDisplayOptions.AllDayAppointmentsStatusDisplayType
WorkWeekView
.AppointmentDisplayOptions.AllDayAppointmentsStatusDisplayType

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_1;
    scheduler.ActiveView.LayoutChanged();
public static void scheduler_AppointmentViewInfoCustomizing_1(object sender, AppointmentViewInfoCustomizingEventArgs e) {
    if (e.ViewInfo.Description.Contains("Time"))
        e.ViewInfo.StatusDisplayType = AppointmentStatusDisplayType.Time;
}

The following code snippets (auto-collected from DevExpress Examples) contain references to the AllDayAppointmentsStatusDisplayType 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.

See Also