Back to Devexpress

DayViewAppointmentDisplayOptionsEx.StretchAppointments Property

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

latest3.5 KB
Original Source

DayViewAppointmentDisplayOptionsEx.StretchAppointments Property

Gets or sets whether Appointments should stretch horizontally to occupy the remaining cell space. Depending on other Scheduler settings, either all Appointments in one row stretch proportionally to the cell size, or the rightmost Appointment occupies the entire available space while other Appointments retain their sizes.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

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

Property Value

TypeDefaultDescription
Booleantrue

true if Appointments should stretch to fill the time cell; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to StretchAppointments
DayView

.AppointmentDisplayOptions .StretchAppointments

|

Remarks

In Day, Work Week, and Full Week Views, you can set custom appointment or column sizes. Both settings are available when appointments are not grouped by their dates (the SchedulerControl.GroupType property does not equal “Date”).

Custom Column Width

Set the View.ColumnWidthMode property to “Fixed” and specify the View.ColumnWidth property value.

You can enable the View.AppointmentDisplayOptions.StretchAppointments property so that appointments stretch horizontally to occupy the entire column width.

Custom Appointment Width

Set the View.ColumnWidthMode property to “Auto” and specify the View.AppointmentDisplayOptions.AppointmentWidth property value.

The View.AppointmentDisplayOptions.StretchAppointments property is also in effect in this mode, and allows you to specify whether rightmost appointments should occupy the remaining time cell space.

See Also

DayViewAppointmentDisplayOptionsEx Class

DayViewAppointmentDisplayOptionsEx Members

DevExpress.XtraScheduler Namespace