[]
Initializes a new instance of the ObjectRect class.
public ObjectRect()
Initializes a new instance of the ObjectRect class from another instance of ObjectRect.
public ObjectRect(ObjectRect source)
| Type | Name | Description |
|---|---|---|
| ObjectRect | source |
Initializes a new instance of the ObjectRect class from a RectangleF.
public ObjectRect(RectangleF rc)
| Type | Name | Description |
|---|---|---|
| RectangleF | rc | The rectangle used to initialize the new ObjectRect. |
Initializes a new instance of the ObjectRect class with the specified location and size.
public ObjectRect(PointF pt, SizeF sz)
| 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. |
Initializes a new instance of the ObjectRect class with the specified coordinates and size.
public ObjectRect(float x, float y, float width, float height)
| 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. |