StylusEventArgs.GetPosition Method (IInputElement)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the position of the stylus.

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

public Point GetPosition(
	IInputElement relativeTo
)

Parameters

relativeTo
Type: System.Windows.IInputElement

The IInputElement that the (x,y) coordinates are mapped to.

Return Value

Type: System.Windows.Point

A Point that represents the position of the stylus, based on the coordinates of relativeTo.

.NET Framework
Available since 3.0
Return to top
Show: