DiagramClientView.DeviceToWorld Method

Definition

Overloads

DeviceToWorld(Point)

Converts a point in device units to world units using the view's current zoom factor. The device units are relative to the DiagramClientView's top-left. The world units are relative to the diagram's top-left.

DeviceToWorld(Rectangle)

Converts a rectangle in device units to world units using the view's current zoom factor. The device units are relative to the DiagramClientView's top-left. The world units are relative to the diagram's top-left.

DeviceToWorld(Size)

Converts a size in device units to world units using the view's current zoom factor.

DeviceToWorld(Size, Single)

Converts a size in device units to world units using the specified zoom factor.

DeviceToWorld(Point)

Converts a point in device units to world units using the view's current zoom factor. The device units are relative to the DiagramClientView's top-left. The world units are relative to the diagram's top-left.

public:
 Microsoft::VisualStudio::Modeling::Diagrams::PointD DeviceToWorld(System::Drawing::Point devicePoint);
public Microsoft.VisualStudio.Modeling.Diagrams.PointD DeviceToWorld (System.Drawing.Point devicePoint);
member this.DeviceToWorld : System.Drawing.Point -> Microsoft.VisualStudio.Modeling.Diagrams.PointD
Public Function DeviceToWorld (devicePoint As Point) As PointD

Parameters

devicePoint
Point

The point in device units relative to the DiagramClientView's top-left.

Returns

The point in world units relative to the diagram's top-left.

Applies to

DeviceToWorld(Rectangle)

Converts a rectangle in device units to world units using the view's current zoom factor. The device units are relative to the DiagramClientView's top-left. The world units are relative to the diagram's top-left.

public:
 Microsoft::VisualStudio::Modeling::Diagrams::RectangleD DeviceToWorld(System::Drawing::Rectangle deviceRectangle);
public Microsoft.VisualStudio.Modeling.Diagrams.RectangleD DeviceToWorld (System.Drawing.Rectangle deviceRectangle);
member this.DeviceToWorld : System.Drawing.Rectangle -> Microsoft.VisualStudio.Modeling.Diagrams.RectangleD
Public Function DeviceToWorld (deviceRectangle As Rectangle) As RectangleD

Parameters

deviceRectangle
Rectangle

The rectangle in device units relative to the DiagramClientView's top-left.

Returns

The rectangle in world units relative to the diagram's top-left.

Applies to

DeviceToWorld(Size)

Converts a size in device units to world units using the view's current zoom factor.

public:
 Microsoft::VisualStudio::Modeling::Diagrams::SizeD DeviceToWorld(System::Drawing::Size deviceSize);
public Microsoft.VisualStudio.Modeling.Diagrams.SizeD DeviceToWorld (System.Drawing.Size deviceSize);
member this.DeviceToWorld : System.Drawing.Size -> Microsoft.VisualStudio.Modeling.Diagrams.SizeD
Public Function DeviceToWorld (deviceSize As Size) As SizeD

Parameters

deviceSize
Size

The size in device units.

Returns

The size in world units.

Applies to

DeviceToWorld(Size, Single)

Converts a size in device units to world units using the specified zoom factor.

public:
 Microsoft::VisualStudio::Modeling::Diagrams::SizeD DeviceToWorld(System::Drawing::Size deviceSize, float zoomFactor);
public Microsoft.VisualStudio.Modeling.Diagrams.SizeD DeviceToWorld (System.Drawing.Size deviceSize, float zoomFactor);
member this.DeviceToWorld : System.Drawing.Size * single -> Microsoft.VisualStudio.Modeling.Diagrams.SizeD
Public Function DeviceToWorld (deviceSize As Size, zoomFactor As Single) As SizeD

Parameters

deviceSize
Size

Size in device units.

zoomFactor
Single

The scaling factor. 1.0f is 100%.

Returns

Size in world units.

Applies to