---
title: "Rectangle..::.equals Method "
canonical: https://www.graphicsmill.com/docs/gmwc/M_J_GraphicsMill_Rectangle_equals.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.equals Method 

**Applies to:** Graphics Mill Web Controls · **Archived documentation**
 
Determines whether the specified rectangle equals to this [Rectangle](https://www.graphicsmill.com/docs/gmwc/T_J_GraphicsMill_Rectangle.htm.md).
 
**Namespace:** [GraphicsMill](https://www.graphicsmill.com/docs/gmwc/N_J_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill.AjaxControls (in Aurigma.GraphicsMill.AjaxControls.dll)
 
## Syntax
  
```
function equals(rect);
```
 
### Parameters
 
 - rect
     - Type: [GraphicsMill..Rectangle](https://www.graphicsmill.com/docs/gmwc/T_J_GraphicsMill_Rectangle.htm.md)
The [Rectangle](https://www.graphicsmill.com/docs/gmwc/T_J_GraphicsMill_Rectangle.htm.md) to test.
 
### Return Value
This method returns **true** if rect is a [Rectangle](https://www.graphicsmill.com/docs/gmwc/T_J_GraphicsMill_Rectangle.htm.md) structure and its [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) fields are equal to the corresponding fields of this [Rectangle](https://www.graphicsmill.com/docs/gmwc/T_J_GraphicsMill_Rectangle.htm.md) structure; otherwise, **false**.
   
## 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)
