PointerEventArgs.CurrentPoint 属性

定义

获取最后一个指针事件的指针数据。

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

属性值

有关指针的状态和屏幕位置的信息。

示例

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

注解

CurrentPoint 对应于 GetIntermediatePoints 检索的最后一个点。

适用于