[]
        
(Showing Draft Content)

GrapeCity.Documents.Text.ObjectRect.-ctor

ObjectRect Constructor

ObjectRect()

Initializes a new instance of the ObjectRect class.

Declaration
public ObjectRect()

ObjectRect(ObjectRect)

Initializes a new instance of the ObjectRect class from another instance of ObjectRect.

Declaration
public ObjectRect(ObjectRect source)
Parameters
Type Name Description
ObjectRect source

ObjectRect(RectangleF)

Initializes a new instance of the ObjectRect class from a RectangleF.

Declaration
public ObjectRect(RectangleF rc)
Parameters
Type Name Description
RectangleF rc

The rectangle used to initialize the new ObjectRect.

ObjectRect(PointF, SizeF)

Initializes a new instance of the ObjectRect class with the specified location and size.

Declaration
public ObjectRect(PointF pt, SizeF sz)
Parameters
Type Name Description
PointF pt

A PointF that represents the upper-left corner of the rectangle.

SizeF sz

A SizeF that represents the size of the rectangle.

ObjectRect(float, float, float, float)

Initializes a new instance of the ObjectRect class with the specified coordinates and size.

Declaration
public ObjectRect(float x, float y, float width, float height)
Parameters
Type Name Description
float x

The X coordinate of the rectangle.

float y

The Y coordinate of the rectangle.

float width

The width of the rectangle.

float height

The height of the rectangle.