Spacing Property

Applies to TestComplete 14.61, last modified on April 22, 2021

Specifies the distance in pixels between the button’s image and the button text.

Declaration

componentObj.Spacing
Read-Write Property Integer
componentObj     One of the user forms components listed in the Applies To section  

Applies To

The property applies to the following components:

TcxButton

Description

Use the Spacing property to get or set the distance between the button’s image specified by the Glyph property and the button text.

To get or set the distance between the glyph and the button edge, use the Margin property.

Property Value

An integer value that means the distance between the button glyph and the button text. The default value is 4.

The value of -1 means that the button text is centered between the glyph and the button edge (the distance between the glyph and the text equals to the distance between the text and the button’s opposite edge).

See Also

Glyph Property
Layout Property
Margin Property

Highlight search results