Back to Devexpress

TimelineViewAppointmentDisplayOptionsEx.StatusDisplayType Property

windowsforms-devexpress-dot-xtrascheduler-dot-timelineviewappointmentdisplayoptionsex-ba0fee7b.md

latest5.2 KB
Original Source

TimelineViewAppointmentDisplayOptionsEx.StatusDisplayType Property

Specifies how to display the status line.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

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

Property Value

TypeDefaultDescription
AppointmentStatusDisplayTypeBounds

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
TimelineView

.AppointmentDisplayOptions .StatusDisplayType

|

Remarks

The StatusDisplayType values are interpreted differently for the vertical status line, i.e. if the TimelineViewAppointmentDisplayOptionsEx.ShowAppointmentStatusVertically property is set to true , as shown in the following table.

StatusDisplayType ValueStatus Line Displayed Vertically
AppointmentStatusDisplayType.BoundsThe appointment status line has the same height as the appointment bounds.
AppointmentStatusDisplayType.TimeThe same as for the Bounds value.
AppointmentStatusDisplayType.NeverThe appointment status line is invisible.

The following code snippet (auto-collected from DevExpress Examples) contains a reference 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-custom-draw-appointments/CS/CustomDrawDemo/Form1.cs#L36

csharp
schedulerControl1.TimelineView.AppointmentDisplayOptions.SnapToCellsMode = AppointmentSnapToCellsMode.Never;
schedulerControl1.TimelineView.AppointmentDisplayOptions.StatusDisplayType = AppointmentStatusDisplayType.Bounds;
schedulerControl1.DayView.AppointmentDisplayOptions.SnapToCellsMode = AppointmentSnapToCellsMode.Never;

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

vb
schedulerControl1.TimelineView.AppointmentDisplayOptions.SnapToCellsMode = AppointmentSnapToCellsMode.Never
schedulerControl1.TimelineView.AppointmentDisplayOptions.StatusDisplayType = AppointmentStatusDisplayType.Bounds
schedulerControl1.DayView.AppointmentDisplayOptions.SnapToCellsMode = AppointmentSnapToCellsMode.Never

See Also

TimelineViewAppointmentDisplayOptionsEx Class

TimelineViewAppointmentDisplayOptionsEx Members

DevExpress.XtraScheduler Namespace