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

DayViewBase.TimeRulers Property

Gets or sets the collection of TimeRuler objects for the current view. This is a dependency property.

Namespace: DevExpress.Xpf.Scheduling

Assembly: DevExpress.Xpf.Scheduling.v19.1.dll

Declaration

public TimeRulerCollection TimeRulers { get; set; }

Property Value

Type Description
DevExpress.Xpf.Scheduling.TimeRulerCollection

A DevExpress.Xpf.Scheduling.TimeRulerCollection object that is a collection of time rulers within the view.

Remarks

The TimeRulers property allows you to specify a collection of time rulers displayed in the Day View, Work Week View, or Week View. Use the collection’s properties and methods to manipulate individual collection items (add or remove time rulers).

The following example demonstrates how to add a time ruler to the Day view:

<dxsch:DayView x:Name="dayView">
    <dxsch:DayView.TimeRulers>
        <dxsch:TimeRulerCollection>
            <dxsch:TimeRuler Caption="GMT" TimeZone="GMT Standard Time"/>
        </dxsch:TimeRulerCollection>
    </dxsch:DayView.TimeRulers>
</dxsch:DayView>

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

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.

See Also