初始化矩形选件类的新实例使用指定的位置和大小的。
命名空间: 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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。