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

◆ max_selection_count() [1/2]

uint32 xtd::forms::month_calendar::max_selection_count ( ) const
noexcept

Gets the maximum number of days that can be selected in a month calendar control.

Returns
The maximum number of days that you can select. The default is 7.
Exceptions
xtd::argument_exceptionThe value is less than 1.
Remarks
Setting this property does not effect the current selection range.
It is important to remember that the xtd::forms::month_calendar::max_selection_count property represents the number of days in the selection, not the difference between xtd::forms::month_calendar::selection_start and xtd::forms::month_calendar::selection_end. For example, if xtd::forms::month_calendar::max_selection_count is 7 (the default), xtd::forms::month_calendar::selection_start and xtd::forms::month_calendar::selection_end can be no more than six days apart.