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

声明
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

Return Value

Type: System.Drawing.Point

.NET Framework Security

See Also

Reference

DiagramClientView Class

WorldToDevice Overload

Microsoft.VisualStudio.Modeling.Diagrams Namespace