Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Converts a size in world units to device units using the view's current zoom factor.
Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Declaration
Public Function WorldToDevice ( _
    worldSize As SizeD _
) As Size
public Size WorldToDevice(
    SizeD worldSize
)
public:
Size WorldToDevice(
    SizeD worldSize
)
member WorldToDevice : 
        worldSize:SizeD -> Size 
public function WorldToDevice(
    worldSize : SizeD
) : Size
Parameters
- worldSize
 Type: Microsoft.VisualStudio.Modeling.Diagrams.SizeD
 The size in world units.
Return Value
Type: System.Drawing.Size
.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.