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, Windows.Foundation.UniversalApiContract)]
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, "Windows.Foundation.UniversalApiContract")]
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, typeof(Windows.Foundation.UniversalApiContract))]
public AutomationPeer GetPeerFromPoint(Point 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, "Windows.Foundation.UniversalApiContract")]
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 元素对应的对等。

适用于