Back to Devexpress

DateNavigator.SelectedRanges Property

windowsforms-devexpress-dot-xtrascheduler-dot-datenavigator-35c0e46e.md

latest1.8 KB
Original Source

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

NuGet Package : DevExpress.Win.Scheduler

Declaration

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

Property Value

TypeDescription
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.

csharp
bool test = dateNavigator1.SelectedRanges.IsDateSelected(DateTime.Now);
vb
Dim test As Boolean = dateNavigator1.SelectedRanges.IsDateSelected(Date.Now)

See Also

DateNavigator Class

DateNavigator Members

DevExpress.XtraScheduler Namespace