windowsforms-devexpress-dot-xtrascheduler-dot-dayview-dfc7a69a.md
Enables display of the specified start of the scheduler visible interval while a custom time ruler is applied in the Day or Work-Week view.
Namespace : DevExpress.XtraScheduler
Assembly : DevExpress.XtraScheduler.v25.2.dll
NuGet Package : DevExpress.Win.Scheduler
[DefaultValue(false)]
[XtraSerializableProperty]
public bool VisibleTimeSnapMode { get; set; }
<DefaultValue(False)>
<XtraSerializableProperty>
Public Property VisibleTimeSnapMode As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true if the start of the scheduler visible interval should be shown as specified without stretching it to the time slot of the ruler; otherwise, false.
|
For example, when a 45-minute time ruler is used in the Day view and the scheduler visible interval start is set to 6:30 AM, the view’s day interval will start from 6:30 AM if the VisibleTimeSnapMode property is set to true. If the VisibleTimeSnapMode property value is false , the start of the view’s day interval will be snapped to the ruler point and set to 6:00.
using DevExpress.XtraScheduler;
// ...
schedulerControl1.DayView.TimeSlots.Clear();
// Specify a 45-minute scale for the Day View.
TimeSpan span = TimeSpan.FromMinutes(45);
schedulerControl1.DayView.TimeSlots.Add(span, "45 Minutes");
schedulerControl1.DayView.TimeScale = span;
// Set custom scheduler visible time.
schedulerControl1.DayView.VisibleTime =
new TimeOfDayInterval(new TimeSpan(6, 30, 0), TimeSpan.FromHours(18));
schedulerControl1.DayView.VisibleTimeSnapMode = true;
Imports DevExpress.XtraScheduler
' ...
schedulerControl1.DayView.TimeSlots.Clear()
' Specify a 45-minute scale for the Day View.
Dim span As TimeSpan = TimeSpan.FromMinutes(45)
schedulerControl1.DayView.TimeSlots.Add(span, "45 Minutes")
schedulerControl1.DayView.TimeScale = span
' Set custom scheduler visible time.
schedulerControl1.DayView.VisibleTime = _
New TimeOfDayInterval(New TimeSpan(6, 30, 0), TimeSpan.FromHours(18))
schedulerControl1.DayView.VisibleTimeSnapMode = True
See Also