Skip to main content

DateNavigator.SelectedRanges Property

Gets the selected date ranges (DateRange objects). Each DateRange object identifies dates that are EQUAL OR GREATER THAN the DateRange.StartDate and LESS THAN the DateRange.EndDate. Thus the last date is excluded from the range.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v24.1.dll

NuGet Package: DevExpress.Win.Scheduler

Declaration

[DXCategory("Appearance")]
public SchedulerDateRangeCollection SelectedRanges { get; }

Property Value

Type Description
DevExpress.XtraScheduler.SchedulerDateRangeCollection

A collection of selected date ranges.

Remarks

To check whether or not a specific date is included in selected DateNavigator ranges, use the IsDateSelected method, not the Contains method.

bool test = dateNavigator1.SelectedRanges.IsDateSelected(DateTime.Now);
See Also