UITechnologyElement.GetBoundingRectangle Method
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)
Syntax
'Declaration
Public MustOverride Sub GetBoundingRectangle ( _
<OutAttribute> ByRef left As Integer, _
<OutAttribute> ByRef top As Integer, _
<OutAttribute> ByRef width As Integer, _
<OutAttribute> ByRef height As Integer _
)
public abstract void GetBoundingRectangle(
out int left,
out int top,
out int width,
out int height
)
public:
virtual void GetBoundingRectangle(
[OutAttribute] int% left,
[OutAttribute] int% top,
[OutAttribute] int% width,
[OutAttribute] int% height
) abstract
abstract GetBoundingRectangle :
left:int byref *
top:int byref *
width:int byref *
height:int byref -> unit
public abstract function GetBoundingRectangle(
left : int,
top : int,
width : int,
height : int
)
Parameters
left
Type: Int32%(Output) The relative x-coordinate of the rectangle.
top
Type: Int32%(Output) The relative y-coordinate of the rectangle.
width
Type: Int32%(Output) The width of the rectangle.
height
Type: Int32%(Output) The height of the rectangle.
Implements
IUITechnologyElement.GetBoundingRectangle(Int32%, Int32%, Int32%, Int32%)
Remarks
This is in screen coordinates and never cached.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.