AutoSize

Returns or sets a value that determines whether a control is automatically resized to display its entire contents.

Syntax

object.AutoSize [= boolean]

The parts of the AutoSize property syntax are described in the following table.

Part Description
object An object expression that evaluates to an object.
boolean A Boolean expression that specifies whether the control is resized, as described in Settings.

Settings

The settings for boolean are described in the following table.

Setting Description
True Automatically resizes the control to display its entire contents.
False (Default) Keeps the size of the control constant. Contents are clipped when they exceed the area of the control.