AutomationPeer.GetPeerFromPoint(Point) Method

Definition

Gets an AutomationPeer from the specified point.

C#
[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);

Parameters

point
Point

The relative position of the target UI element in the UI.

Returns

The AutomationPeer for the UI element at the specified point.

Attributes

Remarks

This method is a utility for hit testing practical UI coordinates, evaluating the corresponding UI element, and returning the peer that corresponds to the hit-tested UI element.

Applies to

Product Versions
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6