DiagramClientView.WorldToDevice Method (PointD)
Converts a point in world units to device units using the view's current zoom factor. The point 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 ( _
worldPoint As PointD _
) As Point
public Point WorldToDevice(
PointD worldPoint
)
public:
Point WorldToDevice(
PointD worldPoint
)
member WorldToDevice :
worldPoint:PointD -> Point
public function WorldToDevice(
worldPoint : PointD
) : Point
Parameters
- worldPoint
Type: Microsoft.VisualStudio.Modeling.Diagrams.PointD
The point in world units relative to the diagram's top-left.
Return Value
Type: System.Drawing.Point
.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.