Share via


Rectangle Constructor

Initializes a new instance of the Rectangle Class with specified location and size.

Namespace:  Microsoft.VisualStudio.TestTools.UITest.Input
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

Syntax

'Declaration
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
)

Parameters

  • x
    Type: Int32
  • y
    Type: Int32
  • width
    Type: Int32
  • height
    Type: Int32

.NET Framework Security

See Also

Reference

Rectangle Structure

Microsoft.VisualStudio.TestTools.UITest.Input Namespace