AutomationElement.TryGetClickablePoint(Point) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Récupère un point dans l’élément qui peut être cliqué.
public:
bool TryGetClickablePoint([Runtime::InteropServices::Out] System::Windows::Point % pt);
public bool TryGetClickablePoint(out System.Windows.Point pt);
member this.TryGetClickablePoint : Point -> bool
Public Function TryGetClickablePoint (ByRef pt As Point) As Boolean
Paramètres
- pt
- Point
Lorsque cette méthode est retournée, contient les coordonnées d’écran physiques d’un point cliquable.
Retours
true s’il existe un point qui peut être cliqué ; sinon false.
Exemples
L’exemple suivant tente de récupérer un point cliquable sur un AutomationElement.
// element is an AutomationElement.
System.Windows.Point pt;
bool clickable = element.TryGetClickablePoint(out pt);
' element is an AutomationElement.
Dim pt As System.Windows.Point
Dim clickable As Boolean = element.TryGetClickablePoint(pt)
Remarques
Un AutomationElement élément n’est pas cliquable s’il est complètement masqué par une autre fenêtre.