windowsforms-devexpress-dot-xtrascheduler-dot-datenavigator-35c0e46e.md
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.v25.2.dll
NuGet Package : DevExpress.Win.Scheduler
[DXCategory("Appearance")]
public SchedulerDateRangeCollection SelectedRanges { get; }
<DXCategory("Appearance")>
Public ReadOnly Property SelectedRanges As SchedulerDateRangeCollection
| Type | Description |
|---|---|
| DevExpress.XtraScheduler.SchedulerDateRangeCollection |
A collection of selected date ranges.
|
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);
Dim test As Boolean = dateNavigator1.SelectedRanges.IsDateSelected(Date.Now)
See Also