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 date field control adjusts its height to its contents. The default is True. p A field that sizes itself keeps the height its font and border require (PreferredHeight) whenever the font, the border, the culture or the DPI changes; its width is defined by the application. The container is told the new size. p In Windows Forms, the wrapper class names the property CtlAutoSize, because Control.AutoSize exists already.
See Also SftDate Object | Object Hierarchy