TouchPoint Constructor
Collapse the table of content
Expand the table of content

TouchPoint Constructor (TouchDevice, Point, Rect, TouchAction)

.NET Framework (current version)
 

Initializes a new instance of the TouchPoint class.

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

public TouchPoint(
	TouchDevice device,
	Point position,
	Rect bounds,
	TouchAction action
)

Parameters

device
Type: System.Windows.Input.TouchDevice

The touch device that generated this TouchPoint.

position
Type: System.Windows.Point

The location of the touch point.

bounds
Type: System.Windows.Rect

The bounds of the area that the finger has in contact with the screen.

action
Type: System.Windows.Input.TouchAction

The last action that occurred by this device at this location.

Exception Condition
ArgumentNullException

The device is null.

The coordinate space of this position and bounds should be consistent.

.NET Framework
Available since 4.0
Return to top
Show:
© 2016 Microsoft