Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 933 Bytes

pointereventargs_currentpoint.md

File metadata and controls

38 lines (29 loc) · 933 Bytes
-api-id -api-type
P:Windows.UI.Core.PointerEventArgs.CurrentPoint
winrt property

Windows.UI.Core.PointerEventArgs.CurrentPoint

-description

Gets the pointer data of the last pointer event.

-property-value

Information about the state and screen position of the pointer.

-remarks

CurrentPoint corresponds to the last point retrieved by GetIntermediatePoints.

-examples

void OnPointerPressed(Windows::UI::Core::CoreWindow const& /* sender */, Windows::UI::Core::PointerEventArgs const& args)
{
    Windows::UI::Input::PointerPoint currentPoint{ args.CurrentPoint() };
}
void MyCoreWindowEvents::GetPointerInfo(
    _In_ PointerEventArgs^ args)
{
    Windows::UI::Input::PointerPoint^ currentPoint = args->CurrentPoint;
}

-see-also