CaptionWidth Property (ASwitch)

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

Syntax

Object.CaptionWidth [ = lCaptionWidth ]

The CaptionWidth property syntax has the following parts:

 

Name

Type

Description

Object

ASwitch

ASwitch control

lCaptionWidth

APixel

An integer specifying the width of the caption on the object

Comments

The default value is -1, which means that:

Example

The following statement changes the ASwitch's CaptionWidth so the caption is ten pixels wide in the face area of the switch.

sw1.CaptionWidth=10

Applies to

ASwitch

See Also

CaptionColor, CaptionFont, CaptionHeight, CaptionLeft, CaptionTop