Rectangle 构造函数

初始化矩形选件类的新实例使用指定的位置和大小的。

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

语法

声明
Public Sub New ( _
    x As Integer, _
    y As Integer, _
    width As Integer, _
    height As Integer _
)
public Rectangle(
    int x,
    int y,
    int width,
    int height
)
public:
Rectangle(
    int x, 
    int y, 
    int width, 
    int height
)
new : 
        x:int * 
        y:int * 
        width:int * 
        height:int -> Rectangle
public function Rectangle(
    x : int, 
    y : int, 
    width : int, 
    height : int
)

参数

  • x
    类型:Int32
  • y
    类型:Int32
  • width
    类型:Int32
  • height
    类型:Int32

.NET Framework 安全性

请参阅

参考

Rectangle 结构

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