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

MultiLayerViewer.ControlToWorkspace Method (Point, Unit)

Converts point coordinates from control-related to workspace-related ones.

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

Syntax

Visual Basic
Public Overrides Function ControlToWorkspace ( _
	point As Point, _
	workspaceUnit As Unit _
) As PointF
C#
public override PointF ControlToWorkspace(
	Point point,
	Unit workspaceUnit
)

Parameters

point

Type: System.Drawing.Point

The point containing values measured in the coordinates of the control.
workspaceUnit

Type: Aurigma.GraphicsMill.Unit

The physical unit of measure.

Return Value

The point containing the values of the point argument translated into the coordinates of the workspace.

Remarks

To apply a translation from the workspace coordinates to control coordinates, use the WorkspaceToControl(PointF, Unit) method.

See Also

Reference