Share via


PointerEventArgs.CurrentPoint Propriété

Définition

Obtient les données de pointeur du dernier événement de pointeur.

public:
 property PointerPoint ^ CurrentPoint { PointerPoint ^ get(); };
PointerPoint CurrentPoint();
public PointerPoint CurrentPoint { get; }
var pointerPoint = pointerEventArgs.currentPoint;
Public ReadOnly Property CurrentPoint As PointerPoint

Valeur de propriété

Informations sur l’état et la position à l’écran du pointeur.

Exemples

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

Remarques

CurrentPoint correspond au dernier point récupéré par GetIntermediatePoints.

S’applique à