---
title: "BaseViewer..::.ControlToWorkspace Method (RectangleF)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_AjaxControls_BaseViewer_ControlToWorkspace_1_a73b99d3.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/)

# BaseViewer.ControlToWorkspace Method (RectangleF)
 
Translates rectangle coordinates from the control-related coordinate system to the workspace-related one.
 
**Namespace:** [Aurigma.GraphicsMill.AjaxControls](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_AjaxControls.htm.md)
 **Assembly:** Aurigma.GraphicsMill.AjaxControls (in Aurigma.GraphicsMill.AjaxControls.dll)
 
## Syntax
  
```
Public Overridable Function ControlToWorkspace ( _rect As RectangleF _
) As RectangleF
```
 
```csharp
public virtual RectangleF ControlToWorkspace(RectangleF rect
)
```
 
### Parameters
 
 - rect
     - Type: [System.Drawing.RectangleF](http://msdn2.microsoft.com/en-us/kwafa1d7)
Rectangle coordinates in the control coordinate system.
 
### Return Value
Rectangle coordinates in the workspace coordinate system.
 
## Remarks
  
The workspace-related coordinate system represents logical coordinates of the image loaded in the control and allows to work with it regardless of zoom, scroll or alignment. The control-related one is used to measure parameters of standard control events (e.g. position of the mouse pointer).
   
## See Also

### Reference

- [BaseViewer Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_AjaxControls_BaseViewer.htm.md)
- [ControlToWorkspace Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_AjaxControls_BaseViewer_ControlToWorkspace.htm.md)
- [Aurigma.GraphicsMill.AjaxControls Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_AjaxControls.htm.md)
- [BaseViewer.WorkspaceToControl(RectangleF)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_AjaxControls_BaseViewer_WorkspaceToControl_1_a73b99d3.htm.md)

### Manual

- [Displaying Image in BitmapViewer (AJAX Controls)](https://www.graphicsmill.com/docs/gm5/AjaxControlsDisplayingImageinBitmapViewer.htm.md)
