Läs på engelska Redigera

Dela via


TouchPoint(TouchDevice, Point, Rect, TouchAction) Constructor

Definition

Initializes a new instance of the TouchPoint class.

C#
public TouchPoint(System.Windows.Input.TouchDevice device, System.Windows.Point position, System.Windows.Rect bounds, System.Windows.Input.TouchAction action);

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

Produkt Versioner
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10