Sdílet prostřednictvím


Rectangle Constructors

Definition

Overloads

Rectangle(Coordinates, Coordinates)

Initializes a new instance of the Rectangle class and defines the Left, Top, Right, and Bottom values by upperLeft, the upper left corner and lowerRight, the lower right corner.

Rectangle(Int32, Int32, Int32, Int32)

Initialize a new instance of the Rectangle class and defines the Left, Top, Right, and Bottom values.

Rectangle(Coordinates, Coordinates)

Initializes a new instance of the Rectangle class and defines the Left, Top, Right, and Bottom values by upperLeft, the upper left corner and lowerRight, the lower right corner.

public:
 Rectangle(System::Management::Automation::Host::Coordinates upperLeft, System::Management::Automation::Host::Coordinates lowerRight);
public Rectangle (System.Management.Automation.Host.Coordinates upperLeft, System.Management.Automation.Host.Coordinates lowerRight);
new System.Management.Automation.Host.Rectangle : System.Management.Automation.Host.Coordinates * System.Management.Automation.Host.Coordinates -> System.Management.Automation.Host.Rectangle
Public Sub New (upperLeft As Coordinates, lowerRight As Coordinates)

Parameters

upperLeft
Coordinates

The Coordinates of the upper left corner of the Rectangle

lowerRight
Coordinates

The Coordinates of the lower right corner of the Rectangle

Applies to

Rectangle(Int32, Int32, Int32, Int32)

Initialize a new instance of the Rectangle class and defines the Left, Top, Right, and Bottom values.

public:
 Rectangle(int left, int top, int right, int bottom);
public:
 Rectangle(int left, int top, int right, int bottom);
 Rectangle(int left, int top, int right, int bottom);
public Rectangle (int left, int top, int right, int bottom);
new System.Management.Automation.Host.Rectangle : int * int * int * int -> System.Management.Automation.Host.Rectangle
Public Sub New (left As Integer, top As Integer, right As Integer, bottom As Integer)

Parameters

left
Int32

The left side of the rectangle

top
Int32

The top of the rectangle

right
Int32

The right side of the rectangle

bottom
Int32

The bottom of the rectangle

Exceptions

right is less than left; bottom is less than top

Applies to