Condividi tramite


PointerEventArgs.CurrentPoint Proprietà

Definizione

Ottiene i dati del puntatore dell'ultimo evento puntatore.

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

Valore della proprietà

Informazioni sullo stato e sulla posizione dello schermo del puntatore.

Esempio

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

Commenti

CurrentPoint corrisponde all'ultimo punto recuperato da GetIntermediatePoints.

Si applica a