OffTextWidth Property (ASwitch)

Returns or sets the width in pixels of the OffText of the object.

Syntax

Object.OffTextWidth [ = lOffTextWidth ]

The OffTextWidth property syntax has the following parts:

 

Name

Type

Description

Object

ASwitch

ASwitch control

lOffTextWidth

APixel

An integer specifying the width in pixels of the OffText of the control.

Comments

The default value is -1 (AutoSize).

Example

The following statement changes the ASwitch's OffTextWidth so the text of the switch for the 'Off' position is six pixels long:

sw1.OffTextWidth=6

Applies to

ASwitch

See Also

OffText, OffTextColor, OffTextFont, OffTextHeight, OffTextLeft, OffTextTop, OnTextWidth