CaptionHeight Property (ASwitch)

Returns or sets the height in pixels of the caption text in the object.

Syntax

Object.CaptionHeight [ = lCaptionHeight ]

The CaptionHeight property syntax has the following parts:

 

Name

Type

Description

Object

ASwitch

ASwitch control

lCaptionHeight

APixel

An integer specifying the height in pixels of the caption on the control.

Comments

The default value is -1 (AutoSize).

Example

The following statement changes the ASwtich's CaptionHeight so the text of the caption is twelve pixels high in the face area of the switch.

sw1.CaptionHeight=12

Applies to

ASwitch

See Also

CaptionColor, CaptionFont, CaptionLeft, CaptionTop, CaptionWidth