Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1.77 KB

pointerpoint_getcurrentpoint_736766126.md

File metadata and controls

39 lines (26 loc) · 1.77 KB
-api-id -api-type
M:Windows.UI.Input.PointerPoint.GetCurrentPoint(System.UInt32,Windows.UI.Input.IPointerPointTransform)
winrt method

Windows.UI.Input.PointerPoint.GetCurrentPoint

-description

Retrieves the transformed information for the specified pointer.

In most cases, we recommend that you get pointer info through the event argument of the pointer event handlers in your chosen language framework (Windows app using JavaScript, UWP app using C++, C#, or Visual Basic, or UWP app using DirectX with C++).

If the event argument doesn't intrinsically expose the pointer details required by your app, you can get access to extended pointer data through the GetCurrentPoint and GetIntermediatePoints methods of PointerRoutedEventArgs. Use these methods to specify the context of the pointer data.

The static PointerPoint methods, GetCurrentPoint and GetIntermediatePoints, always use the app context.

-parameters

-param pointerId

The ID of the pointer.

-param transform

The transform to apply to the pointer.

-returns

The pointer property values.

-remarks

GetCurrentPoint is a static method.

This method is useful for getting pointer information relative to a specific element.

-examples

-see-also

GetCurrentPoint(UInt32)