StylusEventArgs.GetPosition(IInputElement) 方法

定义

获取触笔的位置。Gets the position of the stylus.

public:
 System::Windows::Point GetPosition(System::Windows::IInputElement ^ relativeTo);
public System.Windows.Point GetPosition (System.Windows.IInputElement relativeTo);
member this.GetPosition : System.Windows.IInputElement -> System.Windows.Point
Public Function GetPosition (relativeTo As IInputElement) As Point

参数

relativeTo
IInputElement

(x, y) 坐标映射到的 IInputElementThe IInputElement that the (x, y) coordinates are mapped to.

返回

一个根据 relativeTo 的坐标,表示触笔位置的 PointA Point that represents the position of the stylus, based on the coordinates of relativeTo.

适用于