SchedulerTimeRuler Class

Namespace: DevExpress.Xpf.Scheduler

Assembly: DevExpress.Xpf.Scheduler.v20.1.dll

Declaration

public class SchedulerTimeRuler :
    TimeRuler
Public Class SchedulerTimeRuler
    Inherits TimeRuler

Remarks

IMPORTANT

You are viewing documentation for the legacy WPF Scheduler control. If you're starting a new project, we strongly recommend that you use a new control declared in the DevExpress.Xpf.Scheduling namespace. If you decide to upgrade an existing project in order to switch to the updated scheduler control, see the Migration Guidelines document.

Time rulers are used to display the time of the view's visible interval, specified by the DayView.VisibleTime property. The Day and Work-Week views allow an unlimited number of time rulers to be displayed. They hold their time rulers within their DayView.TimeRulers collection.

The time ruler's TimeRuler.Caption property specifies the ruler's caption. Commonly, captions are used to indicate a time zone or geographical region whose standard time a ruler displays. A time zone whose time a time ruler displays is specified by the TimeRuler.TimeZoneId property. The TimeRuler.TimeMarkerVisibility and TimeRuler.ShowMinutes properties allow you to specify whether the slider which indicates the current time and minutes are displayed, respectively.

It's also possible to specify whether the time ruler maintains daylight-saving time. Use the TimeRuler.AdjustForDaylightSavingTime property for this purpose.

Examples

Dim rulerUTC As New SchedulerTimeRuler()
rulerUTC.TimeZoneId = TimeZoneInfo.Utc.Id
rulerUTC.Caption = "UTC"
rulerUTC.TimeMarkerVisibility = DevExpress.XtraScheduler.TimeMarkerVisibility.Never
scheduler.DayView.TimeRulers.Add(rulerUTC)

Inheritance

Object
TimeRuler
SchedulerTimeRuler
See Also