Back to Devexpress

TimelineView.SnapToCellsMode Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-timelineview-1582497c.md

latest1.9 KB
Original Source

TimelineView.SnapToCellsMode Property

Gets or sets the method of snapping appointments to time cells. This is a dependency property.

Namespace : DevExpress.Xpf.Scheduling

Assembly : DevExpress.Xpf.Scheduling.v25.2.dll

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

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

Property Value

TypeDescription
SnapToCellsMode

A DevExpress.Xpf.Scheduling.SnapToCellsMode enumeration value specifying the snap method.

|

Available values:

NameDescription
Auto

Appointment is stretched to a cell border only if the appointment start and end are located in the same cell or in adjacent cells.

| | 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. However, there is a minimal visible width (TimelineView.AppointmentMinWidth) or height (DayViewBase.AppointmentMinHeight). If an appointment’s duration is quite small, it will never be narrower than the minimal value.

|

See Also

TimelineView Class

TimelineView Members

DevExpress.Xpf.Scheduling Namespace