Megosztás a következőn keresztül:


AutomationPeer.GetClickablePointCore Method

Definition

Provides the peer's behavior when a Microsoft UI Automation client calls GetClickablePoint or an equivalent Microsoft UI Automation client API.

protected:
 virtual Point GetClickablePointCore() = GetClickablePointCore;
Point GetClickablePointCore();
protected virtual Point GetClickablePointCore();
function getClickablePointCore()
Protected Overridable Function GetClickablePointCore () As Point

Returns

A point within the clickable area of the element.

Remarks

The base implementation returns a default Point (coordinates 0,0). Peers that represent items defer to the container. ScrollBarAutomationPeer and SliderAutomationPeer both have behavior that can't adequately express one point for the purposes of GetClickablePoint scenarios, so these return a Point where the coordinate values are NaN.

Note

In C#, you can obtain NaN from Double.NaN.

In C++, you can obtain NaN by using the NAN macro or std::numeric_limits<double>::quiet_NaN.

Do not use the == operator to test for NaN.

In C#, use Double.IsNaN() to test for NaN.

In C++, use isnan() to test for NaN.

Applies to

See also