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

ICoordinateMapper.WorkspaceToControl Method (PointF, Unit)

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

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

Syntax

Visual Basic
Function WorkspaceToControl ( _
	workspacePoint As PointF, _
	workspaceUnit As Unit _
) As Point
C#
                Point WorkspaceToControl(
	PointF workspacePoint,
	Unit workspaceUnit
)

Parameters

workspacePoint

Type: System.Drawing.PointF

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

Type: Aurigma.GraphicsMill.Unit

The physical unit of measure.

Return Value

The point containing the values of the workspacePoint argument translated into the coordinates of the control.

Remarks

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

See Also

Reference