---
title: "Rectangle Methods "
canonical: https://www.graphicsmill.com/docs/gmwc/Methods_T_J_GraphicsMill_Rectangle.htm
archived: true
applies_to:
  - product: "Graphics Mill Web Controls"
---

**You’re viewing documentation for an outdated product.** Graphics Mill Web Controls is no longer part of Graphics Mill. For current design editing and rendering tools, see [Design Atoms .NET](https://customerscanvas.com/docs/on-premises/design-atoms-cs/), [Design Atoms JS](https://customerscanvas.com/docs/on-premises/design-atoms-js/), and [Design Editor](https://customerscanvas.com/docs/on-premises/design-editor/).

# Rectangle Methods 

**Applies to:** Graphics Mill Web Controls · **Archived documentation**
 
The [Rectangle](https://www.graphicsmill.com/docs/gmwc/T_J_GraphicsMill_Rectangle.htm.md) type exposes the following members.
 
## Methods

|   |  Name |  Description |
| --- | --- | --- |
 |  ![Public method](https://www.graphicsmill.com/docs/gmwc/icons/pubmethod.gif) |  [clone](https://www.graphicsmill.com/docs/gmwc/M_J_GraphicsMill_Rectangle_clone.htm.md) |  Clones rectangle. |
 |  ![Public method](https://www.graphicsmill.com/docs/gmwc/icons/pubmethod.gif) |  [contains](https://www.graphicsmill.com/docs/gmwc/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/gmwc/T_J_GraphicsMill_Rectangle.htm.md). |
 |  ![Public method](https://www.graphicsmill.com/docs/gmwc/icons/pubmethod.gif) |  [equals](https://www.graphicsmill.com/docs/gmwc/M_J_GraphicsMill_Rectangle_equals.htm.md) |  Determines whether the specified rectangle equals to this [Rectangle](https://www.graphicsmill.com/docs/gmwc/T_J_GraphicsMill_Rectangle.htm.md). |
 |  ![Public method](https://www.graphicsmill.com/docs/gmwc/icons/pubmethod.gif) |  [intersect](https://www.graphicsmill.com/docs/gmwc/M_J_GraphicsMill_Rectangle_intersect.htm.md) |  Calculates intersection of two rectangles. |
 |  ![Public method](https://www.graphicsmill.com/docs/gmwc/icons/pubmethod.gif) |  [intersectsWith](https://www.graphicsmill.com/docs/gmwc/M_J_GraphicsMill_Rectangle_intersectsWith.htm.md) |  Determines if this [Rectangle](https://www.graphicsmill.com/docs/gmwc/T_J_GraphicsMill_Rectangle.htm.md) intersects with rect. |
 |  ![Public method](https://www.graphicsmill.com/docs/gmwc/icons/pubmethod.gif) |  [round](https://www.graphicsmill.com/docs/gmwc/M_J_GraphicsMill_Rectangle_round.htm.md) |  Rounds all parameters: [x](https://www.graphicsmill.com/docs/gmwc/F_J_GraphicsMill_Rectangle_x.htm.md), [y](https://www.graphicsmill.com/docs/gmwc/F_J_GraphicsMill_Rectangle_y.htm.md), [width](https://www.graphicsmill.com/docs/gmwc/F_J_GraphicsMill_Rectangle_width.htm.md), and [height](https://www.graphicsmill.com/docs/gmwc/F_J_GraphicsMill_Rectangle_height.htm.md); and returns new [Rectangle](https://www.graphicsmill.com/docs/gmwc/T_J_GraphicsMill_Rectangle.htm.md) object. |
   
## See Also

### Reference

- [Rectangle Class](https://www.graphicsmill.com/docs/gmwc/T_J_GraphicsMill_Rectangle.htm.md)
- [GraphicsMill Namespace](https://www.graphicsmill.com/docs/gmwc/N_J_GraphicsMill.htm.md)
