HeaderPane
Main
Hide
Share Link
Print

AutoSize Property, SftDate Object

Defines whether the control sizes itself to its contents.

Syntax

Get

C#bool Boolean = object.AutoSize;
bool Boolean = object.CtlAutoSize;
VB.NETBoolean = object.AutoSize As Boolean
Boolean = object.CtlAutoSize As Boolean
C++VARIANT_BOOL Boolean = object->AutoSize;
VARIANT_BOOL Boolean = object->GetAutoSize();
CHRESULT object->get_AutoSize(VARIANT_BOOL* Boolean);

Put

C#bool object.AutoSize = Boolean;
bool object.CtlAutoSize = Boolean;
VB.NETobject.AutoSize = Boolean As Boolean
object.CtlAutoSize = Boolean As Boolean
C++VARIANT_BOOL object->AutoSize = Boolean;
void object->PutAutoSize(VARIANT_BOOL Boolean);
CHRESULT object->put_AutoSize(VARIANT_BOOL Boolean);

object

A SftDate object.

Boolean

Defines whether the control sizes itself to its contents.

Comments

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


Last Updated 11/29/2026 - (email)
© 2026 Softel vdm, Inc.