The AutoSizeEnum type specifies the way the
control arranges the days within the calendar's view area. Use the
AutoSize
property to specify the way the control arranges the days in the control.
| | Name | Value | Description | |
| |
exFontSize | -1
|
(default) The size of the control's font specifies the size for the days in the calendar.
The Font property specifies the control's font.
The MaxMonthX property specifies the number
of months that can displayed on the horizontal axis. The MaxMonthY
property specifies the number of months that can displayed on the vertical axis.
| |
| |
exFixedSize | 0
|
The days in the calendar has a fixed size. The FixedCellWidth
property specifies the width to display a day in the calendar control. The FixedCellHeight
property specifies the height to display a day in the calendar control. The MaxMonthX
property specifies the number of months that can displayed on the horizontal
axis. The MaxMonthY property specifies the
number of months that can displayed on the vertical axis. For instance, if the
AutoSize property is exFixedSize, and the MaxMonthX is 1, and the MaxMonthY is
1, the calendar is always displaying 1 month in the client's area.
| |
| |
exFitClient | 1
|
The months on horizontal and vertical axis should fit the control's client area.
The size required to display a day in the calendar is computed so all months fit
the control's client area. The MaxMonthX
property specifies the number of months that are displayed on the horizontal
axis. The MaxMonthY property specifies the
number of months that are displayed on the vertical axis. For instance, if the
AutoSize property is exFitClient, and the MaxMonthX is 2, and the MaxMonthY is
2, the calendar is always displaying 4 months in the client's area.
| |