---
title: "Rectangle..::.contains Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_J_GraphicsMill_Rectangle_contains.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.contains Method 
 
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).
 
**Namespace:** [GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_J_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill.AjaxControls (in Aurigma.GraphicsMill.AjaxControls.dll)
 
## Syntax
  
```
function contains(pt);
```
 
### Parameters
 
 - pt
     - Type: [GraphicsMill.PointF](https://www.graphicsmill.com/docs/gm5/T_J_GraphicsMill_PointF.htm.md)
The [PointF](https://www.graphicsmill.com/docs/gm5/T_J_GraphicsMill_PointF.htm.md) to test.
 
### Return Value
This method returns **true** if the point represented by pt is contained within this [Rectangle](https://www.graphicsmill.com/docs/gm5/T_J_GraphicsMill_Rectangle.htm.md) structure; otherwise **false**.
   
## 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)
