Partilhar via


AutomationPeer.GetPeerFromPoint(Point) Método

Definição

Obtém um AutomationPeer do ponto especificado.

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

Parâmetros

point
Point

A posição relativa do elemento de interface do usuário de destino na interface do usuário.

Retornos

O AutomationPeer para o elemento de interface do usuário no ponto especificado.

Atributos

Comentários

Esse método é um utilitário para testar coordenadas práticas da interface do usuário, avaliar o elemento de interface do usuário correspondente e retornar o par que corresponde ao elemento de interface do usuário testado por clique.

Aplica-se a