[]
        
(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)
Public Sub New(location As Point, size As 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)
Public Sub New(x As Double, y As Double, width As Double, height As Double)
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)
Public Sub New(point1 As Point, point2 As Point)
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.