CaptionHeight Property (AButton)

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

AButton

AButton control

lCaptionHeight

APixel

An integer specifying the height of the caption on the object.

Example

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

btn1.CaptionHeight=12

Applies to

AButton

See Also

CaptionLeft, CaptionTop, CaptionWidth