PointerEventArgs.CurrentPoint Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the pointer data of the last pointer event.
public:
property PointerPoint ^ CurrentPoint { PointerPoint ^ get(); };
PointerPoint CurrentPoint();
public PointerPoint CurrentPoint { get; }
var pointerPoint = pointerEventArgs.currentPoint;
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.