CalendarControlBase.SetSelection(DateTime, DateTime) Method

Clears the selection and sets the selection to the specified date range.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v21.1.dll


public virtual void SetSelection(
    DateTime start,
    DateTime end


Name Type Description
start DateTime

The first date of a range (this date is included into the selection)

end DateTime

The last date of a range (this date is NOT included in the selection).


Use the CalendarControlBase.SelectedRanges to access the selected dates.

See Also