Skip to main content

SchedulerViewBase.SetSelection(TimeInterval, Resource) Method

Makes a specific time interval selected within the view.

Namespace: DevExpress.Xpf.Scheduler

Assembly: DevExpress.Xpf.Scheduler.v14.2.dll

#Declaration

public virtual void SetSelection(
    TimeInterval interval,
    Resource resource
)

#Parameters

Name Type Description
interval TimeInterval

A DevExpress.XtraScheduler.TimeInterval object that specifies the time interval to be selected.

resource Resource

A Resource object that specifies to which resource the specified time interval belongs.

#Remarks

Use the SetSelection method to select a specific time interval within the view. The Resource object defined via the resource parameter, specifies the resource which will contain the specified time interval when grouping (by resources or by date) is applied to the view.

Calling the SetSelection method results in the SchedulerControl.SelectionChanged event being invoked.

See Also