UITechnologyElement.GetBoundingRectangle 方法

返回包围此元素的矩形的坐标。

命名空间:  Microsoft.VisualStudio.TestTools.UITest.Extension
程序集:  Microsoft.VisualStudio.TestTools.UITest.Extension(在 Microsoft.VisualStudio.TestTools.UITest.Extension.dll 中)

语法

声明
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
)

参数

  • left
    类型:System.Int32%
    (输出)矩形的相对 x 坐标。
  • top
    类型:System.Int32%
    (输出)矩形的相对 y 坐标。
  • width
    类型:System.Int32%
    (输出)矩形的宽度。
  • height
    类型:System.Int32%
    (输出)矩形的高度。

实现

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

.NET Framework 安全性

请参见

参考

UITechnologyElement 类

Microsoft.VisualStudio.TestTools.UITest.Extension 命名空间