Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)
Syntax
'Declaration
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
worldRectangle
Type: Microsoft.VisualStudio.Modeling.Diagrams.RectangleDThe rectangle in world units relative to the diagram's top-left.
Return Value
Type: Rectangle
.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.