Back to Devexpress

DayViewAppointmentDisplayOptionsEx.ShowAllDayAppointmentStatusVertically Property

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

latest4.6 KB
Original Source

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

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool ShowAllDayAppointmentStatusVertically { get; set; }
vb
<DefaultValue(True)>
<XtraSerializableProperty>
Public Overridable Property ShowAllDayAppointmentStatusVertically As Boolean

Property Value

TypeDefaultDescription
Booleantrue

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 TypePath to ShowAllDayAppointmentStatusVertically
DayView

.AppointmentDisplayOptions .ShowAllDayAppointmentStatusVertically

|

Remarks

ShowAllDayAppointmentStatusVertically = TrueShowAllDayAppointmentStatusVertically = 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.

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

See Also

DayViewAppointmentDisplayOptionsEx Class

DayViewAppointmentDisplayOptionsEx Members

DevExpress.XtraScheduler Namespace