System.Windows.Forms.MonthCalendar.MaxSelectionCount Property

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

Syntax

[System.ComponentModel.DefaultValue(7)]
public int MaxSelectionCount { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Setting this property does not effect the current selection range.

It is important to remember that the MonthCalendar.MaxSelectionCount property represents the number of days in the selection, not the difference between MonthCalendar.SelectionStart and MonthCalendar.SelectionEnd. For example, if MonthCalendar.MaxSelectionCount is 7 (the default), MonthCalendar.SelectionStart and MonthCalendar.SelectionEnd can be no more than six days apart.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0