Udostępnij za pośrednictwem


Metoda UITechnologyManagerProxy.GetFocusedElement —

Pobiera się element, który jest elementem, który będzie odbierał zdarzenia klawiatury w tej instancji.

Przestrzeń nazw:  Microsoft.VisualStudio.TestTools.UITesting
Zestaw:  Microsoft.VisualStudio.TestTools.UITesting (w Microsoft.VisualStudio.TestTools.UITesting.dll)

Składnia

'Deklaracja
Public Overrides Function GetFocusedElement ( _
    handle As IntPtr _
) As IUITechnologyElement
public override IUITechnologyElement GetFocusedElement(
    IntPtr handle
)
public:
virtual IUITechnologyElement^ GetFocusedElement(
    IntPtr handle
) override
abstract GetFocusedElement : 
        handle:IntPtr -> IUITechnologyElement 
override GetFocusedElement : 
        handle:IntPtr -> IUITechnologyElement 
public override function GetFocusedElement(
    handle : IntPtr
) : IUITechnologyElement

Parametry

Wartość zwracana

Typ: Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
Element, który ma fokus lub null, jeśli nie istnieje żaden element, który ma fokus.

Implementuje

IUITechnologyManager.GetFocusedElement(IntPtr)

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

UITechnologyManagerProxy Klasa

Przestrzeń nazw Microsoft.VisualStudio.TestTools.UITesting