Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

UITechnologyElement.GetBoundingRectangle Method (Int32, Int32, Int32, Int32)

 

Returns the coordinates of the rectangle that encloses this element.

Namespace:   Microsoft.VisualStudio.TestTools.UITest.Extension
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

public abstract void GetBoundingRectangle(
	out int left,
	out int top,
	out int width,
	out int height
)

Parameters

left
Type: System.Int32

(Output) The relative x-coordinate of the rectangle.

top
Type: System.Int32

(Output) The relative y-coordinate of the rectangle.

width
Type: System.Int32

(Output) The width of the rectangle.

height
Type: System.Int32

(Output) The height of the rectangle.

This is in screen coordinates and never cached.

Return to top
Show: