StylusEventArgs::GetPosition Method (IInputElement^)

 

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: