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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
声明
Public Function DeviceToWorld ( _
deviceRectangle As Rectangle _
) As RectangleD
public RectangleD DeviceToWorld(
Rectangle deviceRectangle
)
public:
RectangleD DeviceToWorld(
Rectangle deviceRectangle
)
member DeviceToWorld :
deviceRectangle:Rectangle -> RectangleD
public function DeviceToWorld(
deviceRectangle : Rectangle
) : RectangleD
Parameters
- deviceRectangle
Type: System.Drawing.Rectangle
The rectangle in device units relative to the DiagramClientView's top-left.
Return Value
Type: Microsoft.VisualStudio.Modeling.Diagrams.RectangleD
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.