Width Property (Bounds Objects)

Applies to TestComplete 14.93, last modified on October 12, 2021

Description

Use the Width property to read the horizontal size of a rectangle bounding the element.

Declaration

TestObj.Width

Read-Only Property Integer
TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section

Applies To

The property is applied to the following object:

View Mode

To view this property in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.

Property Value

The rectangle width in pixels.

Remarks

If TestObj refers to an object of a non-DPI-aware application running with a DPI setting other than 100%, the property returns a value relative to the application (as if the application is running with the 100% DPI setting).

See Also

Height Property (Bounds Objects)

Highlight search results