Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DateEdit.SelectedRanges Property

Gets or sets 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.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[Browsable(false)]
public DateRangeCollection SelectedRanges { get; }

#Property Value

Type Description
DevExpress.XtraEditors.Controls.DateRangeCollection

A collection of selected date ranges.

#Remarks

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

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