[]
        
(Showing Draft Content)

GrapeCity.Documents.Text.ObjectRect.-ctor

ObjectRect Constructor

ObjectRect()

Initializes a new instance of the ObjectRect class.

Declaration
public ObjectRect()
Public Sub New()

ObjectRect(ObjectRect)

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

Declaration
public ObjectRect(ObjectRect source)
Public Sub New(source As ObjectRect)
Parameters
Type Name Description
ObjectRect source

ObjectRect(RectangleF)

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

Declaration
public ObjectRect(RectangleF rc)
Public Sub New(rc As RectangleF)
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)
Public Sub New(pt As PointF, sz As SizeF)
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)
Public Sub New(x As Single, y As Single, width As Single, height As Single)
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.