Defines whether the control sizes itself to its contents.
Get
| C# | bool Boolean = object.AutoSize; bool Boolean = object.CtlAutoSize; |
| VB.NET | Boolean = object.AutoSize As Boolean Boolean = object.CtlAutoSize As Boolean |
| C++ | VARIANT_BOOL Boolean = object->AutoSize; VARIANT_BOOL Boolean = object->GetAutoSize(); |
| C | HRESULT object->get_AutoSize(VARIANT_BOOL* Boolean); |
Put
| C# | bool object.AutoSize = Boolean; bool object.CtlAutoSize = Boolean; |
| VB.NET | object.AutoSize = Boolean As Boolean object.CtlAutoSize = Boolean As Boolean |
| C++ | VARIANT_BOOL object->AutoSize = Boolean; void object->PutAutoSize(VARIANT_BOOL Boolean); |
| C | HRESULT object->put_AutoSize(VARIANT_BOOL Boolean); |
object
Boolean
Defines whether the control sizes itself to its contents.
The AutoSize property defines whether the month calendar control adjusts its size to its contents. The default is True. p A calendar that sizes itself takes the size of the months it shows (PreferredWidth, PreferredHeight), including the Today and Clear buttons, and keeps its top left corner. The size is adjusted when a setting, the font, the culture or the DPI of the monitor changes, and the container is told the new size. p A calendar that doesn't size itself centers the months in its window and stretches the days to fill a larger window. p In Windows Forms, the wrapper class names the property CtlAutoSize, because Control.AutoSize exists already.
See Also SftCalendar Object | Object Hierarchy | Calendar Layout