Back to Devexpress

AgendaViewAppointmentDisplayOptions.SnapToCellsMode Property

corelibraries-devexpress-dot-xtrascheduler-dot-agendaviewappointmentdisplayoptions-28567464.md

latest3.0 KB
Original Source

AgendaViewAppointmentDisplayOptions.SnapToCellsMode Property

This property has no effect for the Agenda View.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.Core.Desktop.dll

NuGet Package : DevExpress.Scheduler.CoreDesktop

Declaration

csharp
[Browsable(false)]
public override AppointmentSnapToCellsMode SnapToCellsMode { get; set; }
vb
<Browsable(False)>
Public Overrides Property SnapToCellsMode As AppointmentSnapToCellsMode

Property Value

Type
AppointmentSnapToCellsMode

Available values:

NameDescription
Auto

Appointment is stretched to cell border only if the distance from the cell border to the edge of an appointment is less than half of the cell width.

| | Always |

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

| | Never |

The appointment visible width is proportional to its duration. There is a minimal visible width (about 5 pixels). If an appointment’s duration is quite small, it will never be narrower than the minimal width.

| | Disabled |

The appointment visible width is proportional to its duration. The minimal value of a dimension that represents the appointment duration is one pixel. The following picture illustrates the difference between the Disabled and Never modes for an appointment with a very small duration. The Disabled mode displays appointment as a line with a height of one pixel; however in Never mode, it looks like a small appointment with a height of several pixels, rather than a line.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to SnapToCellsMode
AgendaView

.AppointmentDisplayOptions .SnapToCellsMode

|

See Also

AgendaViewAppointmentDisplayOptions Class

AgendaViewAppointmentDisplayOptions Members

DevExpress.XtraScheduler Namespace