This documentation is for the old version. Go to the latest Graphics Mill docs

ViewerBase.ControlToWorkspace Method (Rectangle, Unit)

Converts rectangle coordinates and dimensions from control-related to workspace-related ones.

Namespace: Aurigma.GraphicsMill.WinControls
Assembly: Aurigma.GraphicsMill.WinControls (in Aurigma.GraphicsMill.WinControls.dll)

Syntax

Visual Basic
Public Overridable Function ControlToWorkspace ( _
        controlRectangle
As Rectangle, _
        workspaceUnit
As Unit _
) As RectangleF
C#
public virtual RectangleF ControlToWorkspace(
       
Rectangle controlRectangle,
       
Unit workspaceUnit
)

Parameters

controlRectangle

Type: System.Drawing.Rectangle

A rectangle containing values measured in the coordinates of the control.
workspaceUnit

Type: Aurigma.GraphicsMill.Unit

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) method.

See Also

Reference