Skip to main content

SchedulerViewAppointmentDisplayOptions.SnapToCellsMode Property

Gets or sets the method of snapping appointments to time cells.

Namespace: DevExpress.Xpf.Scheduler

Assembly: DevExpress.Xpf.Scheduler.v14.2.dll

#Declaration

public AppointmentSnapToCellsMode SnapToCellsMode { get; set; }

#Property Value

Type Description
AppointmentSnapToCellsMode

A AppointmentSnapToCellsMode enumeration member which specifies the snapping method.

#Property Paths

You can access the SchedulerViewAppointmentDisplayOptions.SnapToCellsMode property from the following objects:

Show 27 property paths
Library Object Type Path to SnapToCellsMode
WPF Controls DayView
.AppointmentDisplayOptions.SnapToCellsMode
DayView
.AppointmentDisplayOptions.SnapToCellsMode
DayView
.AppointmentDisplayOptions.SnapToCellsMode
DayView
.AppointmentDisplayOptions.SnapToCellsMode
DayView
.AppointmentDisplayOptions.SnapToCellsMode
DayView
.AppointmentDisplayOptions.SnapToCellsMode
FullWeekView
.AppointmentDisplayOptions.SnapToCellsMode
FullWeekView
.AppointmentDisplayOptions.SnapToCellsMode
FullWeekView
.AppointmentDisplayOptions.SnapToCellsMode
FullWeekView
.AppointmentDisplayOptions.SnapToCellsMode
FullWeekView
.AppointmentDisplayOptions.SnapToCellsMode
FullWeekView
.AppointmentDisplayOptions.SnapToCellsMode
TimelineView
.AppointmentDisplayOptions.SnapToCellsMode
TimelineView
.AppointmentDisplayOptions.SnapToCellsMode
TimelineView
.AppointmentDisplayOptions.SnapToCellsMode
TimelineView
.AppointmentDisplayOptions.SnapToCellsMode
TimelineView
.AppointmentDisplayOptions.SnapToCellsMode
TimelineView
.AppointmentDisplayOptions.SnapToCellsMode
WorkWeekView
.AppointmentDisplayOptions.SnapToCellsMode
WorkWeekView
.AppointmentDisplayOptions.SnapToCellsMode
WorkWeekView
.AppointmentDisplayOptions.SnapToCellsMode
WorkWeekView
.AppointmentDisplayOptions.SnapToCellsMode
WorkWeekView
.AppointmentDisplayOptions.SnapToCellsMode
WorkWeekView
.AppointmentDisplayOptions.SnapToCellsMode
Silverlight Controls DayView
.AppointmentDisplayOptions.SnapToCellsMode
TimelineView
.AppointmentDisplayOptions.SnapToCellsMode
WorkWeekView
.AppointmentDisplayOptions.SnapToCellsMode

#Remarks

When snapping mode is set to Auto, an appointment is stretched to fill the cell(s) if its time interval does not include an entire cell. Different snap modes in the Timeline View are illustrated below.

  • SnapToCellsMode = Always

    DXScheduler_Timeline_SnapToCellsMode_Always

  • SnapToCellsMode = Auto

    DXScheduler_Timeline_SnapToCellsMode_Auto

  • SnapToCellsMode = Never

    DXScheduler_Timeline_SnapToCellsMode_Never

For Day and Work-Week views the actual duration is indicated by colorizing the left border of the appointment if the SchedulerAppointmentDisplayOptions.StatusDisplayType is set to AppointmentStatusDisplayType.Time. Snap modes for the DayView are illustrated below.

  • SnapToCellsMode = Always

    DXScheduler_DayView_SnapToCellsMode_Always

  • SnapToCellsMode = Auto

    DXScheduler_DayView_SnapToCellsMode_Auto

  • SnapToCellsMode = Never

    DXScheduler_DayView_SnapToCellsMode_Never

  • SnapToCellsMode = Disabled

    DXScheduler_DayView_SnapToCellsMode_Disabled

See Also