OnTextWidth Property (ASwitch)

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

Syntax

Object.OnTextWidth [ = lOnTextWidth ]

The OnTextWidth property syntax has the following parts:

 

Name

Type

Description

Object

ASwitch

ASwitch control

lOnTextWidth

APixel

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

Comments

The default value is -1 (AutoSize).

Example

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

sw1.OnTextWidth=6

Applies to

ASwitch

See Also

OffText, OnText, OnTextColor, OnTextFont, OnTextHeight, OnTextLeft, OnTextTop