DayViewBase.SnapToCellsMode Property

Gets or sets the method of snapping appointments to time cells in the Day View, Work Week View, and Week View. This is a dependency property.

Namespace: DevExpress.Xpf.Scheduling

Assembly: DevExpress.Xpf.Scheduling.v20.1.dll


public SnapToCellsMode SnapToCellsMode { get; set; }
Public Property SnapToCellsMode As SnapToCellsMode

Property Value

Type Description

A SnapToCellsMode enumeration member specifying the snap method.


The images below demonstrate different snap modes for the Day View:

  • SnapToCellsMode.Auto

    An appointment is stretched to cell borders only if the appointment's start and end are located in the same cell or in adjacent cells.


  • SnapToCellsMode.Always

    An appointment is always stretched to cell borders so that it occupies the entire cell or several cells.


  • SnapToCellsMode.Never

    The appointment height is proportional to its duration. If an appointment's duration is less than the current time cell interval, its height is defined by the DayViewBase.AppointmentMinHeight property value.


See Also