[]
        
(Showing Draft Content)

GrapeCity.Documents.Common.Quadrilateral.-ctor

Quadrilateral Constructor

Quadrilateral(PointF, PointF, PointF, PointF)

Initializes a new instance of the Quadrilateral struct from the four corners of a rectangle.

The vertices's of the quadrilateral correspond to the corners of the rectangle clockwise starting from the bottom left vertex.

Declaration
public Quadrilateral(PointF bottomLeft, PointF topLeft, PointF topRight, PointF bottomRight)
Public Sub New(bottomLeft As PointF, topLeft As PointF, topRight As PointF, bottomRight As PointF)
Parameters
Type Name Description
PointF bottomLeft

The rectangle's bottom left corner.

PointF topLeft

The rectangle's top left corner.

PointF topRight

The rectangle's top right corner.

PointF bottomRight

The rectangle's bottom right corner.

Quadrilateral(RectangleF)

Initializes a new instance of the Quadrilateral struct from a rectangle.

The vertices's of the quadrilateral correspond to the corners of the rectangle clockwise starting from the bottom left vertex.

Declaration
public Quadrilateral(RectangleF rect)
Public Sub New(rect As RectangleF)
Parameters
Type Name Description
RectangleF rect

The rectangle.