---
title: "Rectangle..::.intersect Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_J_GraphicsMill_Rectangle_intersect.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.intersect Method 
 
Calculates intersection of two rectangles.
 
**Namespace:** [GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_J_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill.AjaxControls (in Aurigma.GraphicsMill.AjaxControls.dll)
 
## Syntax
  
```
function intersect(rect);
```
 
### Parameters
 
 - rect
     - Type: [GraphicsMill.Rectangle](https://www.graphicsmill.com/docs/gm5/T_J_GraphicsMill_Rectangle.htm.md)
The [Rectangle](https://www.graphicsmill.com/docs/gm5/T_J_GraphicsMill_Rectangle.htm.md) to calculate intersection.
 
### Return Value
New [Rectangle](https://www.graphicsmill.com/docs/gm5/T_J_GraphicsMill_Rectangle.htm.md) represented the intersection of original rectangles.
   
## 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)
