DiagramClientView.WorldToDevice Method (SizeD, Single)
Converts a size in world units to device units using the specified 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
'Dichiarazione
Public Function WorldToDevice ( _
worldSize As SizeD, _
zoomFactor As Single _
) As Size
public Size WorldToDevice(
SizeD worldSize,
float zoomFactor
)
public:
Size WorldToDevice(
SizeD worldSize,
float zoomFactor
)
member WorldToDevice :
worldSize:SizeD *
zoomFactor:float32 -> Size
public function WorldToDevice(
worldSize : SizeD,
zoomFactor : float
) : Size
Parameters
- worldSize
Type: Microsoft.VisualStudio.Modeling.Diagrams.SizeD
The size in world units.
- zoomFactor
Type: System.Single
The scaling factor. 1.0f is 100%.
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.