Skip to main content
All docs
V25.1
  • DayViewAppointmentDisplayOptionsEx.AppointmentWidth Property

    Gets or sets the custom width for all Appointments. This custom width is in effect only when the ColumnWidthMode is set to Auto, and can be ignored depending on other Scheduler settings (see the description below).

    Namespace: DevExpress.XtraScheduler

    Assembly: DevExpress.XtraScheduler.v25.1.dll

    NuGet Package: DevExpress.Win.Scheduler

    Declaration

    [DefaultValue(0)]
    [XtraSerializableProperty]
    public int AppointmentWidth { get; set; }

    Property Value

    Type Default Description
    Int32 0

    The Appointment width.

    Property Paths

    You can access this nested property as listed below:

    Object Type Path to AppointmentWidth
    DayView
    .AppointmentDisplayOptions .AppointmentWidth

    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.

    Custom Column Width

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

    Stretch with Column Width

    Custom Appointment Width

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

    Custom Appointment Width

    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.

    Stretch with Appointment Width

    See Also