---
title: "RectangleRubberband..::.connect Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_J_GraphicsMill_RectangleRubberband_connect.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/)

# RectangleRubberband.connect Method 
 
Connects this rectangle rubberband to the [BaseViewer](https://www.graphicsmill.com/docs/gm5/T_J_GraphicsMill_BaseViewer.htm.md) control.
 
**Namespace:** [GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_J_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill.AjaxControls (in Aurigma.GraphicsMill.AjaxControls.dll)
 
## Syntax
  
```
function connect(id);
```
 
### Parameters
 
 - id
     - Type: Global.String
The [BaseViewer](https://www.graphicsmill.com/docs/gm5/T_J_GraphicsMill_BaseViewer.htm.md) to connect to.
   
## See Also

### Reference

- [RectangleRubberband Class](https://www.graphicsmill.com/docs/gm5/T_J_GraphicsMill_RectangleRubberband.htm.md)
- [GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_J_GraphicsMill.htm.md)
