DayView.VisibleTimeSnapMode Property

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.v20.1.dll

Declaration

[DefaultValue(false)]
[XtraSerializableProperty]
public bool VisibleTimeSnapMode { get; set; }
<DefaultValue(False)>
<XtraSerializableProperty>
Public Property VisibleTimeSnapMode As Boolean

Property Value

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.

Remarks

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));
// Allow starting scheduler visible time from 6:30 instead of 6:00.
schedulerControl1.DayView.VisibleTimeSnapMode = true;
See Also