PointerEventArgs.CurrentPoint 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得最後一個指標事件的指標資料。
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所擷取的最後一個點。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應