WordWrap Property (ALabel)

Returns or sets whether the word wrap property of the object is TRUE or FALSE.

Object.WordWrap [ = bWordWrap ]

The WordWrap property syntax has the following parts:

 

Name

Type

Description

Object

ALabel

ALabel control

bWordWrap

Bool

A boolean expression that specifies whether the object will resize to display its entire contents.

Where

bWordWrap can be one of the following:

 

Value

Description

True

Automatically resize the height of the control to display its entire contents.

False *

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

Comments

When this property is TRUE and the AutoSize property is TRUE, increasing the text in the Caption property causes the control to retain the same width but expand its height to allow room for all the content to show.

Example

The following statement changes the ALabel WordWrap to allow expansion of the vertical size when more text is entered:

lbl1.WordWrap=True

Applies to

ALabel

See Also

AutoSize, Caption