Automation Guide
Action-based testing language
TestArchitect Automation Classes
Automation classes
AbtList
The requested page is not available for selected version.
GetItemRectByIndex
Syntax
TARect GetItemRectByIndex (int index)
Description
Retrieve the bounding rectangle of a list item by its index.
Parameters
index
Index of item in the list control. Note that index numbering begins with 1.
Return Value
TARect object representing the bounding rectangle of the item. The object contains the following elements:
- left: Horizontal coordinate of left border of the bounding rectangle relative to the left side of the calling object.
- top: Vertical coordinate of top of the bounding rectangle relative to the top of the calling object.
- width: Width of the bounding rectangle.
- height: Height of the bounding rectangle.
Note: all values are in pixels.
Notes
- This method is applicable to both ListBox and ListView controls.