[]
        
(Showing Draft Content)

C1.C1Preview.RectangleD.-ctor

RectangleD Constructor

RectangleD(PointD, SizeD)

Initializes a new instance of the RectangleD structure.

Declaration
public RectangleD(PointD location, SizeD size)
Parameters
Type Name Description
PointD location

The location (coordinates of the top left corner) of the rectangle.

SizeD size

The size of the rectangle.

RectangleD(double, double, double, double)

Initializes a new instance of the RectangleD structure.

Declaration
public RectangleD(double x, double y, double width, double height)
Parameters
Type Name Description
double x

The X coordinate of the left side of the rectangle.

double y

The Y coordinate of the top side of the rectangle.

double width

The width of the rectangle.

double height

The height of the rectangle.