共用方式為


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 的座標空間應該一致。

適用於