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: 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.

Implements

IUITechnologyElement.GetBoundingRectangle(Int32%, Int32%, Int32%, Int32%)

.NET Framework Security

See Also

Reference

UITechnologyElement Class

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace