UITechnologyManager.GetFocusedElement Método

Definição

Sobrecargas

GetFocusedElement(IntPtr)

Retorna o ponteiro do Windows para o elemento que atualmente tem o foco.

GetFocusedElement(AutomationElement)

GetFocusedElement(IntPtr)

Retorna o ponteiro do Windows para o elemento que atualmente tem o foco.

public:
 abstract Microsoft::VisualStudio::TestTools::UITest::Extension::IUITechnologyElement ^ GetFocusedElement(IntPtr handle);
public abstract Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement GetFocusedElement (IntPtr handle);
abstract member GetFocusedElement : nativeint -> Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
Public MustOverride Function GetFocusedElement (handle As IntPtr) As IUITechnologyElement

Parâmetros

handle
IntPtr

O IntPtr para a janela que tem o foco.

Retornos

IUITechnologyElement

O elemento que tem o foco, ou NULL se nenhum elemento tiver o foco.

Implementações

Aplica-se a

GetFocusedElement(AutomationElement)

public:
 virtual Microsoft::VisualStudio::TestTools::UITest::Extension::IUITechnologyElement ^ GetFocusedElement(System::Windows::Automation::AutomationElement ^ ceilingElement);
public virtual Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement GetFocusedElement (System.Windows.Automation.AutomationElement ceilingElement);
abstract member GetFocusedElement : System.Windows.Automation.AutomationElement -> Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
override this.GetFocusedElement : System.Windows.Automation.AutomationElement -> Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
Public Overridable Function GetFocusedElement (ceilingElement As AutomationElement) As IUITechnologyElement

Parâmetros

ceilingElement
AutomationElement

Retornos

IUITechnologyElement

Aplica-se a