다음을 통해 공유


UITechnologyElementProxy.GetBoundingRectangle Method

Gets the coordinates of the rectangle that completely encloses this element.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

Syntax

'Declaration
Public Overrides Sub GetBoundingRectangle ( _
    <OutAttribute> ByRef left As Integer, _
    <OutAttribute> ByRef top As Integer, _
    <OutAttribute> ByRef width As Integer, _
    <OutAttribute> ByRef height As Integer _
)
public override 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
) override
abstract GetBoundingRectangle : 
        left:int byref * 
        top:int byref * 
        width:int byref * 
        height:int byref -> unit  
override GetBoundingRectangle : 
        left:int byref * 
        top:int byref * 
        width:int byref * 
        height:int byref -> unit
public override function GetBoundingRectangle(
    left : int, 
    top : int, 
    width : int, 
    height : int
)

Parameters

  • left
    Type: Int32%
  • top
    Type: Int32%
  • width
    Type: Int32%
  • height
    Type: Int32%

Implements

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

Remarks

This is in screen coordinates and never cached.

.NET Framework Security

See Also

Reference

UITechnologyElementProxy Class

Microsoft.VisualStudio.TestTools.UITesting Namespace