Share via


ElementCompositionPreview.GetPointerPositionPropertySet(UIElement) 方法

定義

擷取相對於 UIElement 的指標位置。

public:
 static CompositionPropertySet ^ GetPointerPositionPropertySet(UIElement ^ targetElement);
 static CompositionPropertySet GetPointerPositionPropertySet(UIElement const& targetElement);
public static CompositionPropertySet GetPointerPositionPropertySet(UIElement targetElement);
function getPointerPositionPropertySet(targetElement)
Public Shared Function GetPointerPositionPropertySet (targetElement As UIElement) As CompositionPropertySet

參數

targetElement
UIElement

指標位置相對於的專案。

傳回

指標的位置屬性。

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)

適用於