Skip to main content
A newer version of this page is available. .

SchedulerTimeRuler Class

Namespace: DevExpress.Xpf.Scheduler

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

Declaration

public class SchedulerTimeRuler :
    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.

Example

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

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SchedulerTimeRuler class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

Inheritance

Object
TimeRuler
SchedulerTimeRuler
See Also