Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SnapToCellsMode Enum

Lists values that manage when the Day-based views snap appointments to cells.

Namespace: DevExpress.Maui.Scheduler

Assembly: DevExpress.Maui.Scheduler.dll

NuGet Package: DevExpress.Maui.Scheduler

#Declaration

C#
public enum SnapToCellsMode

#Members

Name Description
Auto

The view stretches appointment representations when the appointment’s start and end are in one cell or in neighbor cells.

Always

The view always stretches appointment representations to cell borders. They occupy all the entire cell or several cells in this case.

Never

The visible appointment height is proportional to its duration.

#Related API Members

The following properties accept/return SnapToCellsMode values:

#Remarks

The DayViewBase.SnapToCellsMode property uses these enum values.

The following table lists images that demonstrate how these values affect appointments:

Value

Sample Image

Description

Never

SnapToCellsMode.Never Sample

The visible appointment height is proportional to its duration.

Always

SnapToCellsMode.Never Sample

The view always stretches appointment representations to cell borders. They occupy all the entire cell or several cells in this case.

Auto

SnapToCellsMode.Never Sample

The view stretches appointment representations when the appointment’s start and end are in one cell or in neighbor cells.

Note

The DayViewBase.AppointmentMinHeight property limits the minimum appointment height when the View uses the Never value. Appointments cannot be narrower than the property value.

See Also