MonthCalendar.SingleMonthSize Property

 

Gets the minimum size to display one month of the calendar.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

[BrowsableAttribute(false)]
public Size SingleMonthSize { get; }

Property Value

Type: System.Drawing.Size

The size, in pixels, necessary to fully display one month in the calendar.

Exception Condition
InvalidOperationException

The dimensions cannot be retrieved.

The size information is presented in the form of the Width and Height members, representing the minimum width and height required to display one month in the control. The minimum required window size for a month calendar control depends on the currently selected font.

.NET Framework
Available since 1.1
Return to top
Show: