AutomationElement.TryGetClickablePoint(Point) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves a point within the element that can be clicked.
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
Parameters
- pt
- Point
When this method returns, contains the physical screen coordinates of a clickable point.
Returns
true
if there is a point that is clickable; otherwise false
.
Examples
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);
' element is an AutomationElement.
Dim pt As System.Windows.Point
Dim clickable As Boolean = element.TryGetClickablePoint(pt)
Remarks
An AutomationElement is not clickable if it is completely obscured by another window.
Applies to
See also
.NET
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示