TouchPoint(TouchDevice, Point, Rect, TouchAction) 构造函数

定义

初始化 TouchPoint 类的新实例。

public:
 TouchPoint(System::Windows::Input::TouchDevice ^ device, System::Windows::Point position, System::Windows::Rect bounds, System::Windows::Input::TouchAction action);
public TouchPoint (System.Windows.Input.TouchDevice device, System.Windows.Point position, System.Windows.Rect bounds, System.Windows.Input.TouchAction action);
new System.Windows.Input.TouchPoint : System.Windows.Input.TouchDevice * System.Windows.Point * System.Windows.Rect * System.Windows.Input.TouchAction -> System.Windows.Input.TouchPoint
Public Sub New (device As TouchDevice, position As Point, bounds As Rect, action As TouchAction)

参数

device
TouchDevice

生成了此 TouchPoint 的触摸设备。

position
Point

触点的位置。

bounds
Rect

手指触屏区域的边界。

action
TouchAction

此设备在此位置发生的最后一项操作。

例外

devicenull

注解

positionbounds 的坐标空间应保持一致。

适用于