DiagramClientView.DeviceToWorld 方法

定义

重载

DeviceToWorld(Point)

使用视图的当前缩放系数将设备单位中的点转换为世界单位。 设备单位是相对于 DiagramClientView 的左上角。 世界单位相对于图表的左上角。

DeviceToWorld(Rectangle)

使用视图的当前缩放系数将设备单位中的矩形转换为世界单位。 设备单位是相对于 DiagramClientView 的左上角。 世界单位相对于图表的左上角。

DeviceToWorld(Size)

使用视图的当前缩放系数将大小以设备单位转换为世界单位。

DeviceToWorld(Size, Single)

使用指定的缩放因子将设备单位的大小转换为世界单位。

DeviceToWorld(Point)

使用视图的当前缩放系数将设备单位中的点转换为世界单位。 设备单位是相对于 DiagramClientView 的左上角。 世界单位相对于图表的左上角。

public:
 Microsoft::VisualStudio::Modeling::Diagrams::PointD DeviceToWorld(System::Drawing::Point devicePoint);
public Microsoft.VisualStudio.Modeling.Diagrams.PointD DeviceToWorld (System.Drawing.Point devicePoint);
member this.DeviceToWorld : System.Drawing.Point -> Microsoft.VisualStudio.Modeling.Diagrams.PointD
Public Function DeviceToWorld (devicePoint As Point) As PointD

参数

devicePoint
Point

相对于 DiagramClientView 的左上角,以设备单位表示的点。

返回

PointD

与关系图的左上角相对的世界单位的点。

适用于

DeviceToWorld(Rectangle)

使用视图的当前缩放系数将设备单位中的矩形转换为世界单位。 设备单位是相对于 DiagramClientView 的左上角。 世界单位相对于图表的左上角。

public:
 Microsoft::VisualStudio::Modeling::Diagrams::RectangleD DeviceToWorld(System::Drawing::Rectangle deviceRectangle);
public Microsoft.VisualStudio.Modeling.Diagrams.RectangleD DeviceToWorld (System.Drawing.Rectangle deviceRectangle);
member this.DeviceToWorld : System.Drawing.Rectangle -> Microsoft.VisualStudio.Modeling.Diagrams.RectangleD
Public Function DeviceToWorld (deviceRectangle As Rectangle) As RectangleD

参数

deviceRectangle
Rectangle

相对于 DiagramClientView 的左上角,以设备单位表示的矩形。

返回

RectangleD

相对于关系图的左上角的矩形(世界单位)。

适用于

DeviceToWorld(Size)

使用视图的当前缩放系数将大小以设备单位转换为世界单位。

public:
 Microsoft::VisualStudio::Modeling::Diagrams::SizeD DeviceToWorld(System::Drawing::Size deviceSize);
public Microsoft.VisualStudio.Modeling.Diagrams.SizeD DeviceToWorld (System.Drawing.Size deviceSize);
member this.DeviceToWorld : System.Drawing.Size -> Microsoft.VisualStudio.Modeling.Diagrams.SizeD
Public Function DeviceToWorld (deviceSize As Size) As SizeD

参数

deviceSize
Size

以设备单位表示的大小。

返回

SizeD

大小(单位为世界单位)。

适用于

DeviceToWorld(Size, Single)

使用指定的缩放因子将设备单位的大小转换为世界单位。

public:
 Microsoft::VisualStudio::Modeling::Diagrams::SizeD DeviceToWorld(System::Drawing::Size deviceSize, float zoomFactor);
public Microsoft.VisualStudio.Modeling.Diagrams.SizeD DeviceToWorld (System.Drawing.Size deviceSize, float zoomFactor);
member this.DeviceToWorld : System.Drawing.Size * single -> Microsoft.VisualStudio.Modeling.Diagrams.SizeD
Public Function DeviceToWorld (deviceSize As Size, zoomFactor As Single) As SizeD

参数

deviceSize
Size

大小(以设备单位为单位)。

zoomFactor
Single

缩放系数。 1.0 f 为100%。

返回

SizeD

大小(单位为世界单位)。

适用于