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

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.v19.2.dll

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