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.v20.1.dll

Declaration

[DXCategory("Appearance")]
public SchedulerDateRangeCollection SelectedRanges { get; }
<DXCategory("Appearance")>
Public ReadOnly Property SelectedRanges As SchedulerDateRangeCollection

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