共用方式為


AutomationPeer.GetPeerFromPoint(Point) 方法

定義

從指定的點取得 AutomationPeer

public:
 virtual AutomationPeer ^ GetPeerFromPoint(Point point) = GetPeerFromPoint;
/// [Windows.Foundation.Metadata.Deprecated("Consider using GetElementFromPoint, which is an improved version of GetPeerFromPoint. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Microsoft.UI.Xaml.WinUIContract")]
AutomationPeer GetPeerFromPoint(Point const& point);
[Windows.Foundation.Metadata.Deprecated("Consider using GetElementFromPoint, which is an improved version of GetPeerFromPoint. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Microsoft.UI.Xaml.WinUIContract")]
public AutomationPeer GetPeerFromPoint(Point point);
function getPeerFromPoint(point)
Public Function GetPeerFromPoint (point As Point) As AutomationPeer

參數

point
Point

目標UI元素在UI中的相對位置。

傳回

指定點之 UI 專案的 AutomationPeer

屬性

備註

此方法是點擊測試實際UI座標、評估對應的UI元素,以及傳回對應至點擊測試UI元素的對等公用程式。

適用於