[]
        
(Showing Draft Content)

GrapeCity.Drawing.Rectangle.-ctor

Rectangle Constructor

Rectangle(double, double, double, double)

Initializes a new instance of the Rectangle struct with the specified coordinates.

Declaration
public Rectangle(double left, double top, double right, double bottom)
Public Sub New(left As Double, top As Double, right As Double, bottom As Double)
Parameters
Type Name Description
double left

The x-coordinate of the upper-left corner of the rectangle.

double top

The y-coordinate of the upper-left corner of the rectangle.

double right

The x-coordinate of the lower-right corner of the rectangle.

double bottom

The y-coordinate of the lower-right corner of the rectangle.

Rectangle(Point, Size)

Initializes a new instance of the Rectangle struct with the specified coordinates and size.

Declaration
public Rectangle(Point location, Size size)
Public Sub New(location As Point, size As Size)
Parameters
Type Name Description
Point location

The coordinates of the upper-left corner of the rectangle.

Size size

The size of the rectangle.