Udostępnij za pośrednictwem


Metoda UITechnologyManagerProxy.GetFocusedElement —

Pobiera element koncentruje się, 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

  • handle
    Typ: IntPtr

    Uchwyt okna, który ma fokus.

Wartość zwracana

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

Implementuje

IUITechnologyManager.GetFocusedElement(IntPtr)

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

UITechnologyManagerProxy Klasa

Przestrzeń nazw Microsoft.VisualStudio.TestTools.UITesting