Visual.PointToScreen(Point) 方法

定义

将表示 Point 的当前坐标系的 Visual 转换为屏幕坐标中的 PointConverts a Point that represents the current coordinate system of the Visual into a Point in screen coordinates.

public:
 System::Windows::Point PointToScreen(System::Windows::Point point);
public System.Windows.Point PointToScreen (System.Windows.Point point);
member this.PointToScreen : System.Windows.Point -> System.Windows.Point

参数

point
Point

表示 Point 的当前坐标系的 Visual 值。The Point value that represents the current coordinate system of the Visual.

返回

屏幕坐标中转换后的 Point 值。The converted Point value in screen coordinates.

注解

使用 PointFromScreen 方法将屏幕坐标中的 Point 转换为表示 Visual的当前坐标系统的 PointUse the PointFromScreen method to convert a Point in screen coordinates into a Point that represents the current coordinate system of the Visual.

适用于