PointerPoint.GetCurrentPoint 方法

定義

多載

GetCurrentPoint(UInt32)

擷取指定指標的位置和狀態資訊。

在大部分情況下,建議您透過所選語言架構中指標事件處理常式的事件引數取得指標資訊, (使用 JavaScript、使用 C++、C# 或 Visual Basic 的 UWP 應用程式,或使用 DirectX 搭配 C++) 的 UWP 應用程式。

如果事件引數未內建公開應用程式所需的指標詳細資料,您可以透過PointerRoutedEventArgsGetCurrentPointGetIntermediatePoints方法,存取擴充指標資料。 使用這些方法來指定指標資料的內容。

靜態 PointerPoint 方法 GetCurrentPoint 和 GetIntermediatePoints一律使用應用程式內容。

GetCurrentPoint(UInt32, IPointerPointTransform)

擷取指定指標的已轉換資訊。

在大部分情況下,建議您透過所選語言架構中指標事件處理常式的事件引數取得指標資訊, (使用 JavaScript、使用 C++、C# 或 Visual Basic 的 UWP 應用程式,或使用 DirectX 搭配 C++) 的 UWP 應用程式。

如果事件引數未內建公開應用程式所需的指標詳細資料,您可以透過PointerRoutedEventArgsGetCurrentPointGetIntermediatePoints方法,存取擴充指標資料。 使用這些方法來指定指標資料的內容。

靜態 PointerPoint 方法 GetCurrentPointGetIntermediatePoints一律使用應用程式內容。

GetCurrentPoint(UInt32)

擷取指定指標的位置和狀態資訊。

在大部分情況下,建議您透過所選語言架構中指標事件處理常式的事件引數取得指標資訊, (使用 JavaScript、使用 C++、C# 或 Visual Basic 的 UWP 應用程式,或使用 DirectX 搭配 C++) 的 UWP 應用程式。

如果事件引數未內建公開應用程式所需的指標詳細資料,您可以透過PointerRoutedEventArgsGetCurrentPointGetIntermediatePoints方法,存取擴充指標資料。 使用這些方法來指定指標資料的內容。

靜態 PointerPoint 方法 GetCurrentPoint 和 GetIntermediatePoints一律使用應用程式內容。

public:
 static PointerPoint ^ GetCurrentPoint(unsigned int pointerId);
/// [Windows.Foundation.Metadata.Overload("GetCurrentPoint")]
 static PointerPoint GetCurrentPoint(uint32_t const& pointerId);
[Windows.Foundation.Metadata.Overload("GetCurrentPoint")]
public static PointerPoint GetCurrentPoint(uint pointerId);
function getCurrentPoint(pointerId)
Public Shared Function GetCurrentPoint (pointerId As UInteger) As PointerPoint

參數

pointerId
UInt32

unsigned int

uint32_t

指標的識別碼。

傳回

指標屬性值。

屬性

備註

GetCurrentPoint 是靜態方法。

另請參閱

適用於

GetCurrentPoint(UInt32, IPointerPointTransform)

擷取指定指標的已轉換資訊。

在大部分情況下,建議您透過所選語言架構中指標事件處理常式的事件引數取得指標資訊, (使用 JavaScript、使用 C++、C# 或 Visual Basic 的 UWP 應用程式,或使用 DirectX 搭配 C++) 的 UWP 應用程式。

如果事件引數未內建公開應用程式所需的指標詳細資料,您可以透過PointerRoutedEventArgsGetCurrentPointGetIntermediatePoints方法,存取擴充指標資料。 使用這些方法來指定指標資料的內容。

靜態 PointerPoint 方法 GetCurrentPointGetIntermediatePoints一律使用應用程式內容。

public:
 static PointerPoint ^ GetCurrentPoint(unsigned int pointerId, IPointerPointTransform ^ transform);
/// [Windows.Foundation.Metadata.Overload("GetCurrentPointTransformed")]
 static PointerPoint GetCurrentPoint(uint32_t const& pointerId, IPointerPointTransform const& transform);
[Windows.Foundation.Metadata.Overload("GetCurrentPointTransformed")]
public static PointerPoint GetCurrentPoint(uint pointerId, IPointerPointTransform transform);
function getCurrentPoint(pointerId, transform)
Public Shared Function GetCurrentPoint (pointerId As UInteger, transform As IPointerPointTransform) As PointerPoint

參數

pointerId
UInt32

unsigned int

uint32_t

指標的識別碼。

transform
IPointerPointTransform

要套用至指標的轉換。

傳回

指標屬性值。

屬性

備註

GetCurrentPoint 是靜態方法。

這個方法適用于取得相對於特定元素的指標資訊。

另請參閱

適用於