TryGetClickablePoint Method

AutomationElement.TryGetClickablePoint Method

Retrieves a point within the element that can be clicked.

Namespace: System.Windows.Automation
Assembly: UIAutomationClient (in uiautomationclient.dll)

public bool TryGetClickablePoint (
	out Point pt
public boolean TryGetClickablePoint (
	/** @attribute OutAttribute() */ /** @ref */ Point pt
Not applicable.



When this method returns, contains the physical screen coordinates of a clickable point.

Return Value

true if there is a point that is clickable; otherwise false.

An AutomationElement is not clickable if it is completely obscured by another window.

The following example attempts to retrieve a clickable point on an AutomationElement.

// element is an AutomationElement.
System.Windows.Point pt;
bool clickable = element.TryGetClickablePoint(out pt);

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

© 2015 Microsoft