SingleMonthSize Property

MonthCalendar.SingleMonthSize Property

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

[Visual Basic]
Public ReadOnly Property SingleMonthSize As Size
[C#]
public Size SingleMonthSize {get;}
[C++]
public: __property Size get_SingleMonthSize();
[JScript]
public function get SingleMonthSize() : Size;

Property Value

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

Exceptions

Exception Type Condition
InvalidOperationException The dimensions cannot be retrieved.

Remarks

The size information is presented in the form of 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.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

MonthCalendar Class | MonthCalendar Members | System.Windows.Forms Namespace | SetCalendarDimensions | DefaultSize

Show:
© 2016 Microsoft