---
title: "CanvasViewer..::.ControlToWorkspace Method (RectangleF)"
canonical: https://www.graphicsmill.com/docs/gmwc/M_Aurigma_GraphicsMill_AjaxControls_CanvasViewer_ControlToWorkspace_1_a73b99d3.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/).

# CanvasViewer.ControlToWorkspace Method (RectangleF)

**Applies to:** Graphics Mill Web Controls · **Archived documentation**
 
Translates rectangle coordinates from the control-related coordinate system to the workspace-related one.
 
**Namespace:** [Aurigma.GraphicsMill.AjaxControls](https://www.graphicsmill.com/docs/gmwc/N_Aurigma_GraphicsMill_AjaxControls.htm.md)
 **Assembly:** Aurigma.GraphicsMill.AjaxControls.VectorObjects (in Aurigma.GraphicsMill.AjaxControls.VectorObjects.dll)
 
## Syntax
  
```csharp
public override RectangleF ControlToWorkspace(RectangleF rect
)
```
 
### Parameters
 
 - rect
     - Type: [System.Drawing..RectangleF](http://msdn2.microsoft.com/en-us/library/kwafa1d7)
Rectangle coordinates in the control coordinate system.
 
### Return Value
The [RectangleF](http://msdn2.microsoft.com/en-us/library/kwafa1d7) value which represents rectangle coordinates in the workspace coordinate system.
   
## See Also

### Reference

- [CanvasViewer Class](https://www.graphicsmill.com/docs/gmwc/T_Aurigma_GraphicsMill_AjaxControls_CanvasViewer.htm.md)
- [ControlToWorkspace Overload](https://www.graphicsmill.com/docs/gmwc/O_T_Aurigma_GraphicsMill_AjaxControls_CanvasViewer_ControlToWorkspace.htm.md)
- [Aurigma.GraphicsMill.AjaxControls Namespace](https://www.graphicsmill.com/docs/gmwc/N_Aurigma_GraphicsMill_AjaxControls.htm.md)
- [CanvasViewer..WorkspaceToControl(RectangleF)](https://www.graphicsmill.com/docs/gmwc/M_Aurigma_GraphicsMill_AjaxControls_CanvasViewer_WorkspaceToControl_1_a73b99d3.htm.md)
