---
title: "Rectangle Methods "
canonical: https://www.graphicsmill.com/docs/gm5/Methods_T_J_GraphicsMill_Rectangle.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# Rectangle Methods 
 
The [Rectangle](https://www.graphicsmill.com/docs/gm5/T_J_GraphicsMill_Rectangle.htm.md) type exposes the following members.
 
## Methods

|   |  Name |  Description |
| --- | --- | --- |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [clone](https://www.graphicsmill.com/docs/gm5/M_J_GraphicsMill_Rectangle_clone.htm.md) |  Clones rectangle. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [contains](https://www.graphicsmill.com/docs/gm5/M_J_GraphicsMill_Rectangle_contains.htm.md) |  Determines if the specified point is contained within the rectangular region defined by this [Rectangle](https://www.graphicsmill.com/docs/gm5/T_J_GraphicsMill_Rectangle.htm.md). |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [equals](https://www.graphicsmill.com/docs/gm5/M_J_GraphicsMill_Rectangle_equals.htm.md) |  Determines whether the specified rectangle equals to this [Rectangle](https://www.graphicsmill.com/docs/gm5/T_J_GraphicsMill_Rectangle.htm.md). |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [intersect](https://www.graphicsmill.com/docs/gm5/M_J_GraphicsMill_Rectangle_intersect.htm.md) |  Calculates intersection of two rectangles. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [intersectsWith](https://www.graphicsmill.com/docs/gm5/M_J_GraphicsMill_Rectangle_intersectsWith.htm.md) |  Determines if this [Rectangle](https://www.graphicsmill.com/docs/gm5/T_J_GraphicsMill_Rectangle.htm.md) intersects with rect. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [round](https://www.graphicsmill.com/docs/gm5/M_J_GraphicsMill_Rectangle_round.htm.md) |  Rounds all parameters: [x](https://www.graphicsmill.com/docs/gm5/F_J_GraphicsMill_Rectangle_x.htm.md), [y](https://www.graphicsmill.com/docs/gm5/F_J_GraphicsMill_Rectangle_y.htm.md), [width](https://www.graphicsmill.com/docs/gm5/F_J_GraphicsMill_Rectangle_width.htm.md), and [height](https://www.graphicsmill.com/docs/gm5/F_J_GraphicsMill_Rectangle_height.htm.md); and returns new [Rectangle](https://www.graphicsmill.com/docs/gm5/T_J_GraphicsMill_Rectangle.htm.md) object. |
   
## See Also

### Reference

- [Rectangle Class](https://www.graphicsmill.com/docs/gm5/T_J_GraphicsMill_Rectangle.htm.md)
- [GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_J_GraphicsMill.htm.md)
