---
title: "ICoordinateMapper..::.ControlToWorkspace Method (Rectangle, Unit)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WinControls_ICoordinateMapper_ControlToWorkspace_2_9c856ce8.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/)

# ICoordinateMapper.ControlToWorkspace Method (Rectangle, Unit)
 
Converts rectangle coordinates and dimensions from control-related to workspace-related ones.
 
**Namespace:** [Aurigma.GraphicsMill.WinControls](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
 **Assembly:** Aurigma.GraphicsMill.WinControls (in Aurigma.GraphicsMill.WinControls.dll)
 
## Syntax
  
```
Function ControlToWorkspace ( _controlRectangle As Rectangle, _workspaceUnit As Unit _
) As RectangleF
```
 
```csharp
                RectangleF ControlToWorkspace(Rectangle controlRectangle,Unit workspaceUnit
)
```
 
### Parameters
 
 - controlRectangle
     - Type: [System.Drawing.Rectangle](http://msdn2.microsoft.com/en-us/1zk39146)
A rectangle containing values measured in the coordinates of the control.

 - workspaceUnit
     - Type: [Aurigma.GraphicsMill.Unit](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Unit.htm.md)
The physical unit of measure.
 
### Return Value
A rectangle containing the values of the controlRectangle argument translated into the coordinates of the workspace.
 
## Remarks
  
To apply a translation from the workspace coordinates to control coordinates, use the [WorkspaceToControl(RectangleF, Unit)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WinControls_ICoordinateMapper_WorkspaceToControl_2_06e8222e.htm.md) method.
   
## See Also

### Reference

- [ICoordinateMapper Interface](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_ICoordinateMapper.htm.md)
- [ControlToWorkspace Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_WinControls_ICoordinateMapper_ControlToWorkspace.htm.md)
- [Aurigma.GraphicsMill.WinControls Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
