AutomationElement.TryGetClickablePoint(Point) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
클릭할 수 있는 요소 내의 지점을 검색합니다.
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
매개 변수
- pt
- Point
이 메서드가 반환될 때 클릭 가능한 점의 실제 화면 좌표를 포함합니다.
반품
예제
다음 예제에서는 .에서 클릭 가능한 지점을 검색하려고 시도합니다 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)
설명
AutomationElement 다른 창에 의해 완전히 가려진 경우 클릭할 수 없습니다.