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

ViewerBase.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
Public MustOverride Function WorkspaceToControl ( _
	workspacePoint As PointF, _
	workspaceUnit As Unit _
) As Point
C#
public abstract Point WorkspaceToControl(
	PointF workspacePoint,
	Unit workspaceUnit
)

Parameters

workspacePoint

Type: System.Drawing.PointF

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

Type: Aurigma.GraphicsMill.Unit

The physical unit of measure.

Return Value

A 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