AutomationPeer.GetPeerFromPoint(Point) Methode

Definition

Ruft einen AutomationPeer vom angegebenen Punkt ab.

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

Parameter

point
Point

Die relative Position des Zielbenutzeroberflächenelements auf der Benutzeroberfläche.

Gibt zurück

Der AutomationPeer für das UI-Element am angegebenen Punkt.

Attribute

Hinweise

Diese Methode ist ein Hilfsprogramm zum Testen praktischer UI-Koordinaten, zum Auswerten des entsprechenden UI-Elements und zum Zurückgeben des Peers, der dem treffergetesteten UI-Element entspricht.

Gilt für: