PointerEventArgs.CurrentPoint PointerEventArgs.CurrentPoint PointerEventArgs.CurrentPoint PointerEventArgs.CurrentPoint Property

Definition

Gets the pointer data of the last pointer event.

public : PointerPoint CurrentPoint { get; }
PointerPoint CurrentPoint();
public PointerPoint CurrentPoint { get; }
Public ReadOnly Property CurrentPoint As PointerPoint

Property Value

Information about the state and screen position of the pointer.

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;
}

Remarks

CurrentPoint corresponds to the last point retrieved by GetIntermediatePoints.