---
title: "BaseViewer..::.WorkspaceToControl Method (PointF)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_AjaxControls_BaseViewer_WorkspaceToControl_1_ea862d5e.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.WorkspaceToControl Method (PointF)
 
Translates point 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 (in Aurigma.GraphicsMill.AjaxControls.dll)
 
## Syntax
  
```
Public Overridable Function WorkspaceToControl ( _point As PointF _
) As PointF
```
 
```csharp
public virtual PointF WorkspaceToControl(PointF point
)
```
 
### Parameters
 
 - point
     - Type: [System.Drawing.PointF](http://msdn2.microsoft.com/en-us/ckys1c1e)
Point coordinates in the workspace coordinate system.
 
### Return Value
Point coordinates in the control 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)
- [WorkspaceToControl Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_AjaxControls_BaseViewer_WorkspaceToControl.htm.md)
- [Aurigma.GraphicsMill.AjaxControls Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_AjaxControls.htm.md)
- [BaseViewer.ControlToWorkspace(PointF)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_AjaxControls_BaseViewer_ControlToWorkspace_1_ea862d5e.htm.md)

### Manual

- [Displaying Image in BitmapViewer (AJAX Controls)](https://www.graphicsmill.com/docs/gm5/AjaxControlsDisplayingImageinBitmapViewer.htm.md)
