HeaderPane
Main
Hide
Share Link
Print

AutoSize Property, SftCalendar 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 SftCalendar object.

Boolean

Defines whether the control sizes itself to its contents.

Comments

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


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