Back to Devexpress

SchedulerViewBase.GotoTimeInterval(TimeInterval) Method

windowsforms-devexpress-dot-xtrascheduler-dot-schedulerviewbase-dot-gototimeinterval-x28-devexpress-dot-xtrascheduler-dot-timeinterval-x29.md

latest2.8 KB
Original Source

SchedulerViewBase.GotoTimeInterval(TimeInterval) Method

Selects the specified time interval and scrolls the View to it if it’s not currently visible.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
public virtual void GotoTimeInterval(
    TimeInterval interval
)
vb
Public Overridable Sub GotoTimeInterval(
    interval As TimeInterval
)

Parameters

NameTypeDescription
intervalTimeInterval

A TimeInterval object that specifies the required time interval.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GotoTimeInterval(TimeInterval) method.

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.

winforms-scheduler-hit-testing/CS/HitTest/Form1.cs#L18

csharp
schedulerControl1.Start = DateTime.Now.Date;
schedulerControl1.DayView.GotoTimeInterval(new TimeInterval(schedulerControl1.Start.AddHours(17), new TimeSpan(2, 0, 0)));
LoadData();

winforms-scheduler-hit-testing/VB/HitTest/Form1.vb#L17

vb
schedulerControl1.Start = Date.Now.Date
schedulerControl1.DayView.GotoTimeInterval(New TimeInterval(schedulerControl1.Start.AddHours(17), New TimeSpan(2, 0, 0)))
LoadData()

See Also

SelectAppointment

SchedulerViewBase Class

SchedulerViewBase Members

DevExpress.XtraScheduler Namespace