Back to Devexpress

AppointmentDisplayOptions.StatusDisplayType Property

corelibraries-devexpress-dot-xtrascheduler-dot-appointmentdisplayoptions-cd5fe250.md

latest6.4 KB
Original Source

AppointmentDisplayOptions.StatusDisplayType Property

Specifies whether to display a status line and whether to fill the status line to indicate appointment status and duration.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.Core.Desktop.dll

NuGet Package : DevExpress.Scheduler.CoreDesktop

Declaration

csharp
public virtual AppointmentStatusDisplayType StatusDisplayType { get; set; }
vb
Public Overridable Property StatusDisplayType As AppointmentStatusDisplayType

Property Value

TypeDescription
AppointmentStatusDisplayType

An AppointmentStatusDisplayType enumeration value.

|

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 StatusDisplayType
SchedulerViewInfoBase

.AppointmentDisplayOptions .StatusDisplayType

| | TimeCellsControlBase |

.AppointmentDisplayOptions .StatusDisplayType

| | SchedulerViewBase |

.AppointmentDisplayOptions .StatusDisplayType

|

Remarks

Use this property to specify whether an appointment should indicate appointment status by filling the status line with the status texture and color, and appointment duration by the span of the filled part of the line.

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

csharp
void InitScheduler() {
    this.schedulerControl1.DayView.AppointmentDisplayOptions.StatusDisplayType = AppointmentStatusDisplayType.Never;
    this.schedulerControl1.DayView.AppointmentDisplayOptions.AllDayAppointmentsStatusDisplayType = AppointmentStatusDisplayType.Never;

winforms-scheduler-custom-draw-appointments/CS/CustomDrawDemo/Form1.cs#L38

csharp
schedulerControl1.DayView.AppointmentDisplayOptions.SnapToCellsMode = AppointmentSnapToCellsMode.Never;
schedulerControl1.DayView.AppointmentDisplayOptions.StatusDisplayType = AppointmentStatusDisplayType.Bounds;
schedulerControl1.TimelineView.Scales.Clear();

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

vb
Private Sub InitScheduler()
    Me.schedulerControl1.DayView.AppointmentDisplayOptions.StatusDisplayType = AppointmentStatusDisplayType.Never
    Me.schedulerControl1.DayView.AppointmentDisplayOptions.AllDayAppointmentsStatusDisplayType = AppointmentStatusDisplayType.Never

winforms-scheduler-custom-draw-appointments/VB/CustomDrawDemo/Form1.vb#L36

vb
schedulerControl1.DayView.AppointmentDisplayOptions.SnapToCellsMode = AppointmentSnapToCellsMode.Never
schedulerControl1.DayView.AppointmentDisplayOptions.StatusDisplayType = AppointmentStatusDisplayType.Bounds
schedulerControl1.TimelineView.Scales.Clear()

See Also

StatusDisplayType

Appointment Labels and Statuses

AppointmentStatusType

AppointmentStatus

StatusKey

AppointmentDisplayOptions Class

AppointmentDisplayOptions Members

DevExpress.XtraScheduler Namespace