OnTextTop Property (ASwitch)

Returns or sets the top position in pixels of the OnText of the object. 

Syntax

Object.OnTextTop [ = lOnTextTop ]

The OnTextTop property syntax has the following parts:

 

Name

Type

Description

Object

ASwitch

ASwitch control

lOnTextTop

APixel

An integer specifying the top position in pixels of the OnText of the control.

Comments

The default value is -1 (AutoSize).

Example

The following statement changes the ASwitch's OnTextTop so the text of the switch for the 'On' position is six pixels from the top:

sw1.OnTextTop=6

Applies to

ASwitch

See Also

OffTextTop, OnText, OnTextColor, OnTextFont, OnTextHeight, OnTextLeft, OnTextWidth