Compartilhar via


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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)

Syntax

'Declaração
Public Function WorldToDevice ( _
    worldRectangle As RectangleD _
) As Rectangle
public Rectangle WorldToDevice(
    RectangleD worldRectangle
)
public:
Rectangle WorldToDevice(
    RectangleD worldRectangle
)
member WorldToDevice : 
        worldRectangle:RectangleD -> Rectangle 
public function WorldToDevice(
    worldRectangle : RectangleD
) : Rectangle

Parameters

Return Value

Type: System.Drawing.Rectangle

.NET Framework Security

See Also

Reference

DiagramClientView Class

WorldToDevice Overload

Microsoft.VisualStudio.Modeling.Diagrams Namespace