Delen via


IUITechnologyElement.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
Sub GetBoundingRectangle ( _
    <OutAttribute> ByRef left As Integer, _
    <OutAttribute> ByRef top As Integer, _
    <OutAttribute> ByRef width As Integer, _
    <OutAttribute> ByRef height As Integer _
)
void GetBoundingRectangle(
    out int left,
    out int top,
    out int width,
    out int height
)
void GetBoundingRectangle(
    [OutAttribute] int% left, 
    [OutAttribute] int% top, 
    [OutAttribute] int% width, 
    [OutAttribute] int% height
)
abstract GetBoundingRectangle : 
        left:int byref * 
        top:int byref * 
        width:int byref * 
        height:int byref -> unit
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.

.NET Framework Security

See Also

Reference

IUITechnologyElement Interface

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace