---
title: "CanvasViewer..::.WorkspaceToControl Method (RectangleF)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_AjaxControls_CanvasViewer_WorkspaceToControl_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/)

# CanvasViewer.WorkspaceToControl Method (RectangleF)
 
Translates rectangle coordinates from the workspace-related coordinate system to the control-related one.
 
**Namespace:** [Aurigma.GraphicsMill.AjaxControls](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_AjaxControls.htm.md)
 **Assembly:** Aurigma.GraphicsMill.AjaxControls.VectorObjects (in Aurigma.GraphicsMill.AjaxControls.VectorObjects.dll)
 
## Syntax
  
```
Public Overrides Function WorkspaceToControl ( _rect As RectangleF _
) As RectangleF
```
 
```csharp
public override RectangleF WorkspaceToControl(RectangleF rect
)
```
 
### Parameters
 
 - rect
     - Type: [System.Drawing.RectangleF](http://msdn2.microsoft.com/en-us/kwafa1d7)
Rectangle coordinates in the workspace coordinate system.
 
### Return Value
The [RectangleF](http://msdn2.microsoft.com/en-us/kwafa1d7) value which represents rectangle coordinates in the control coordinate system.
   
## See Also

### Reference

- [CanvasViewer Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_AjaxControls_CanvasViewer.htm.md)
- [WorkspaceToControl Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_AjaxControls_CanvasViewer_WorkspaceToControl.htm.md)
- [Aurigma.GraphicsMill.AjaxControls Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_AjaxControls.htm.md)
- [CanvasViewer.ControlToWorkspace(RectangleF)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_AjaxControls_CanvasViewer_ControlToWorkspace_1_a73b99d3.htm.md)
