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

SchedulerControl.LimitInterval Property

Gets or sets the time interval available for end-users.

Namespace: DevExpress.Xpf.Scheduler

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

Declaration

public TimeInterval LimitInterval { get; set; }

Property Value

Type Description
TimeInterval

A TimeInterval object.

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.

Use the LimitInterval property to prevent end-users from operation beyond the specified time interval and block the view of appointments for dates outside this interval. When specifying the interval, you should not exceed the real-life time range which is common for the System.DateTime value type: from 12:00:00 midnight, January 1, 0001 Anno Domini (Common Era) to 11:59:59 P.M., December 31, 9999 A.D. (C.E.)

Example

This example demonstrates how to set the scheduler’s limit interval with the specified start date and duration, using the SchedulerControl.LimitInterval property.

<dxsch:SchedulerControl.LimitInterval>
     <dxschcore:TimeInterval Start="10/8/2010" Duration="5"/>
</dxsch:SchedulerControl.LimitInterval>

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the LimitInterval 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