DiagramClientView::DeviceToWorld Method (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.

Namespace:   Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

public:
RectangleD DeviceToWorld(
	Rectangle deviceRectangle
)

Parameters

deviceRectangle
Type: System.Drawing::Rectangle

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

Return to top
Show: