Back to Devexpress

DayViewAppointmentDisplayOptionsEx.AllDayAppointmentsStatusDisplayType Property

windowsforms-devexpress-dot-xtrascheduler-dot-dayviewappointmentdisplayoptionsex-d8b51490.md

latest7.2 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
[DefaultValue(AppointmentStatusDisplayType.Bounds)]
public override AppointmentStatusDisplayType AllDayAppointmentsStatusDisplayType { get; set; }
vb
<DefaultValue(AppointmentStatusDisplayType.Bounds)>
Public Overrides Property AllDayAppointmentsStatusDisplayType As AppointmentStatusDisplayType

Property Value

TypeDefaultDescription
AppointmentStatusDisplayTypeBounds

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

|

Available values:

NameDescription
Never

The appointment status line is invisible.

| | Time |

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

| | Bounds |

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

|

Property Paths

You can access this nested property as listed below:

Object TypePath to AllDayAppointmentsStatusDisplayType
DayView

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

csharp
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;
}
vb
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

The following code snippet (auto-collected from DevExpress Examples) contains a reference 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.

winforms-scheduler-sync-google-event-colors-with-labels/CS/SchedulerGSync/SchedulerGSync/MainForm.cs#L35

csharp
this.schedulerControl1.DayView.AppointmentDisplayOptions.StatusDisplayType = AppointmentStatusDisplayType.Never;
this.schedulerControl1.DayView.AppointmentDisplayOptions.AllDayAppointmentsStatusDisplayType = AppointmentStatusDisplayType.Never;
this.schedulerControl1.WorkWeekView.AppointmentDisplayOptions.StatusDisplayType = AppointmentStatusDisplayType.Never;

winforms-scheduler-sync-google-event-colors-with-labels/VB/SchedulerGSync/SchedulerGSync/MainForm.vb#L37

vb
Me.schedulerControl1.DayView.AppointmentDisplayOptions.StatusDisplayType = AppointmentStatusDisplayType.Never
Me.schedulerControl1.DayView.AppointmentDisplayOptions.AllDayAppointmentsStatusDisplayType = AppointmentStatusDisplayType.Never
Me.schedulerControl1.WorkWeekView.AppointmentDisplayOptions.StatusDisplayType = AppointmentStatusDisplayType.Never

See Also

DayViewAppointmentDisplayOptionsEx Class

DayViewAppointmentDisplayOptionsEx Members

DevExpress.XtraScheduler Namespace