[]
        
(Showing Draft Content)

C1.Win.Interop.Rect.-ctor

Rect Constructor

Rect(Point, Size)

Initializes a new instance of the Rect structure.

Declaration
public Rect(Point location, Size size)
Parameters
Type Name Description
Point location

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

Size size

The size of the rectangle.

Rect(double, double, double, double)

Initializes a new instance of the Rect structure.

Declaration
public Rect(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.

Rect(Point, Point)

Declaration
public Rect(Point point1, Point point2)
Parameters
Type Name Description
Point point1

The first point that the new rectangle must contain.

Point point2

The second point that the new rectangle must contain.