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

ViewerBase.WorkspaceToControl Method (RectangleF, Unit)

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

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

Syntax

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

Parameters

workspaceRectangle

Type: System.Drawing.RectangleF

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

Type: Aurigma.GraphicsMill.Unit

The physical unit of measure.

Return Value

A rectangle containing the values of the workspaceRectangle argument translated into the coordinates of the control.

Remarks

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

See Also

Reference