property Element.AutoSize as Boolean
Specifies if the element computes its size automatically.

TypeDescription
Boolean A Boolean expression that specifies whether the size of the element based on its content.
By default, the AutoSize property is True, if it the Type is exElementHostDefault. While the AutoSize property is True, the element is not resizable. Its size is changed based on the element's content: caption, extra-caption, icons, and so on. The InflateSize property indicates the size to be added to the default auto-size for increasing the size of the element. The Padding, BorderPadding and StatusPadding properties specifies the padding to be applied on client, border and status parts of the element. The Caption property specifies the element's caption. The ExtraCaption property specifies the element's extra caption. The ShowCheckBox property indicates whether the element's checkbox is visible or hidden. If AutoSize property is False, you can use the Resizable on False to prevent resizing an element. If AutoSize property is True, the Width and the Height can not be changed programmatically. The MinWidth/MaxWidth and MinHeight/MaxHeight properties specifies the min/max size of the element. Use the AllowResizeElement property to specify whether the element can be resized at runtime.