AutomationElement.TryGetClickablePoint(Point) 메서드

정의

요소 내에서 클릭할 수 있는 지점을 검색합니다.

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

메서드 반환 시 클릭할 수 있는 지점의 실제 화면 좌표를 포함합니다.

반환

Boolean

클릭할 수 있는 지점이 있으면 true이고, 그렇지 않으면 false입니다.

예제

다음 예제에서 클릭 가능한 지점이 검색 하려고 시도 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 완전히 다른 창으로 가려진 경우 클릭 가능한 아닙니다.

적용 대상

추가 정보