TouchPoint(TouchDevice, Point, Rect, TouchAction) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the TouchPoint class.
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)
Parameters
- device
- TouchDevice
The touch device that generated this TouchPoint.
- position
- Point
The location of the touch point.
- bounds
- Rect
The bounds of the area that the finger has in contact with the screen.
- action
- TouchAction
The last action that occurred by this device at this location.
Exceptions
The device
is null
.
Remarks
The coordinate space of this position
and bounds
should be consistent.
Applies to
ทํางานร่วมกับเราใน GitHub
แหล่งที่มาสำหรับเนื้อหานี้สามารถพบได้บน GitHub ซึ่งคุณยังสามารถสร้างและตรวจสอบปัญหาและคำขอดึงข้อมูลได้ สำหรับข้อมูลเพิ่มเติม ให้ดูคู่มือผู้สนับสนุนของเรา