Visual.PointToScreen(Point) Method

Definition

将表示 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
Public Function PointToScreen (point As Point) As Point

Parameters

point
Point

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

Returns

Point

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

Remarks

使用 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.

Applies to