AutomationElement.TryGetClickablePoint Method (Point)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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


Type: System.Windows.Point

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

Return Value

Type: System.Boolean

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);

.NET Framework
Available since 3.0
Return to top