SchedulerViewBase.SetSelection(TimeInterval, Resource) Method
Selects time cells which encompass the specified time interval.
Namespace: DevExpress.Xpf.Scheduler
Assembly: DevExpress.Xpf.Scheduler.v24.1.dll
NuGet Package: DevExpress.Wpf.Scheduler
Declaration
Parameters
Name | Type | Description |
---|---|---|
interval | TimeInterval | A TimeInterval object that specifies the time interval to select. |
resource | Resource | A Resource object that specifies to which resource the specified time interval belongs. |
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 SetSelection method to select time cells within the view. The Resource object defined via the resource parameter specifies the resource associated with the selected cells when the view is grouped with the SchedulerViewBase.GroupType set to SchedulerGroupType.Resource or SchedulerGroupType.Date values. For a scheduler without resources, specify the ResourceEmpty.Resource value as the resource parameter.
Note
Calling the SetSelection method raises the SchedulerControl.SelectionChanged event.