CaptionLeft Property (AButton)

Returns or sets the left position in pixels of the caption text in the object.

Syntax

Object.CaptionLeft [ = lCaptionLeft ]

The CaptionLeft property syntax has the following parts:

 

Name

Type

Description

Object

AButton

AButton control

lCaptionLeft

APixel

An integer specifying the position of the leftmost part of the caption on the AButton. The default value is -1 (not used).

Example

The following statement changes the AButton's CaptionLeft so the text starts at five pixels from the left side of the focus area of the button.

btn1.CaptionLeft=5

Applies to

AButton

See Also

CaptionHeight, CaptionTop, CaptionWidth