DiagramClientView::WorldToDevice Method (RectangleD)

 

Converts a rectangle in world units to device units using the view's current zoom factor. The rectangle returned is relative to the DiagramClientView'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:
Rectangle WorldToDevice(
	RectangleD worldRectangle
)

Parameters

worldRectangle
Type: Microsoft.VisualStudio.Modeling.Diagrams::RectangleD

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

Return Value

Type: System.Drawing::Rectangle
Return to top
Show: