AutoSize Property (ALabel)

Returns or sets a value that determines whether the object is automatically resized to display its entire contents (text).

Syntax

Object.AutoSize [ = bAutoSize ]

The AutoSize property syntax has the following parts:

 

Name

Type

Description

Object

ALabel

ALabel control

bAutoSize

Bool

A boolean expression that specifies whether object can receive the focus and respond to user-generated events.

Where

bAutoSize can be one of the following:

 

Value

Description

True

Automatically resize the control to display its entire contents.

False *

Keeps the size of control constant. Contents are clipped when they exceed the area of the control.

Example

The following statement changes the ALabel Autosize to resize the control:

lbl1.Autosize=True

Applies to

ALabel

See Also

Caption, WordWrap