Stretch Property

Applies to TestComplete 14.0, last modified on January 23, 2019

Specifies whether the TImage component resizes the image.

Declaration

componentObj.Stretch
Read-Write Property Boolean
componentObj     One of the user forms components or objects listed in the Applies To section  

Applies To

The property applies to the following components:

TImage

Description

The Stretch property specifies whether the TImage component resizes the image so that it fits the component’s bounds. When the component is resized, the image is resized as well. To resize the component according to the image’s width and height, use the AutoSize property.

If the Proportional property is False, the component changes the image’s width and height according to the component’s width and height so that the image covers the whole component surface. If Proportional is True, the component keeps the image’s aspect ratio and it is possible that the image will not cover the whole component area.

Property Value

True, if the image is resized; False otherwise.

See Also

AutoSize Property
Proportional Property
TImage Object

Highlight search results