UITechnologyElement.GetClickablePoint Method

Gets a clickable point for this element.

Namespace:  Microsoft.VisualStudio.TestTools.UITest.Extension
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

Syntax

'Declaration
Public MustOverride Sub GetClickablePoint ( _
    <OutAttribute> ByRef pointX As Integer, _
    <OutAttribute> ByRef pointY As Integer _
)
public abstract void GetClickablePoint(
    out int pointX,
    out int pointY
)
public:
virtual void GetClickablePoint(
    [OutAttribute] int% pointX, 
    [OutAttribute] int% pointY
) abstract
abstract GetClickablePoint : 
        pointX:int byref * 
        pointY:int byref -> unit 
public abstract function GetClickablePoint(
    pointX : int, 
    pointY : int
)

Parameters

  • pointX
    Type: System.Int32%
    (Output) The relative x-coordinate for the clickable point.
  • pointY
    Type: System.Int32%
    (Output) The relative y-coordinate for the clickable point.

Implements

IUITechnologyElement.GetClickablePoint(Int32%, Int32%)

Exceptions

Exception Condition
NotSupportedException

This operation is not supported. This causes the test framework to use its default algorithm to obtain the clickable point.

Remarks

After calling the GetOption method with a GetClickablePointFrom parameter value and receiving GetClickablePointFromTechnologyManager in return, the testing framework uses this method to obtain the clickable point.

To use the default algorithm that is provided by the framework, this method must throw the NotSupportedException.

.NET Framework Security

See Also

Reference

UITechnologyElement Class

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace

GetOption

UITechnologyElementOption