Partager via


DiagramClientView.DeviceToWorld Method (Size, Single)

Converts a size in device units to world units using the specified zoom factor.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

Syntax

'Declaration
Public Function DeviceToWorld ( _
    deviceSize As Size, _
    zoomFactor As Single _
) As SizeD
public SizeD DeviceToWorld(
    Size deviceSize,
    float zoomFactor
)
public:
SizeD DeviceToWorld(
    Size deviceSize, 
    float zoomFactor
)
member DeviceToWorld : 
        deviceSize:Size * 
        zoomFactor:float32 -> SizeD
public function DeviceToWorld(
    deviceSize : Size, 
    zoomFactor : float
) : SizeD

Parameters

  • zoomFactor
    Type: System.Single

    The scaling factor. 1.0f is 100%.

Return Value

Type: Microsoft.VisualStudio.Modeling.Diagrams.SizeD

.NET Framework Security

See Also

Reference

DiagramClientView Class

DeviceToWorld Overload

Microsoft.VisualStudio.Modeling.Diagrams Namespace