xtd 0.2.0
Loading...
Searching...
No Matches

◆ set_selection_range()

void xtd::forms::month_calendar::set_selection_range ( const xtd::date_time date1,
const xtd::date_time date2 
)

Sets the selected dates in a month calendar control to the specified date range.

Parameters
date1The beginning date of the selection range.
date2The end date of the selection range.
Remarks
Using this method is functionally equivalent to setting the xtd::forms::month_calendar::selection_range property. You can set the start and end dates separately by setting either the xtd::forms::month_calendar::selection_start or xtd::forms::month_calendar::selection_end property.
If you set the date1 parameter greater than the date2 parameter, both dates are set to the date1 value.