1 write to _maxSelectionCount
System.Windows.Forms (1)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
496_maxSelectionCount = value;
11 references to _maxSelectionCount
System.Windows.Forms (11)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (11)
478get => _maxSelectionCount; 483if (value == _maxSelectionCount) 658if ((value - _selectionStart).Days >= _maxSelectionCount) 660_selectionStart = value.AddDays(1 - _maxSelectionCount); 695if ((_selectionEnd - value).Days >= _maxSelectionCount) 697_selectionEnd = value.AddDays(_maxSelectionCount - 1); 1361if (_maxSelectionCount != DefaultMaxSelectionCount) 1363PInvokeCore.SendMessage(this, PInvoke.MCM_SETMAXSELCOUNT, (WPARAM)_maxSelectionCount); 1852if ((date2 - date1).Days >= _maxSelectionCount) 1857date1 = date2.AddDays(1 - _maxSelectionCount); 1862date2 = date1.AddDays(_maxSelectionCount - 1);