Share via


UITechnologyElementProxy.TopLevelElement Property

Gets or sets the top level window corresponding to this element. The top level windows are typically children of desktop. If this is not set, the framework will set this to the top-most ancestor of the element (after ignoring the desktop as ancestor).

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

Syntax

'Declaration
Public Overrides Property TopLevelElement As UITechnologyElement
public override UITechnologyElement TopLevelElement { get; set; }
public:
virtual property UITechnologyElement^ TopLevelElement {
    UITechnologyElement^ get () override;
    void set (UITechnologyElement^ value) override;
}
abstract TopLevelElement : UITechnologyElement with get, set 
override TopLevelElement : UITechnologyElement with get, set
override function get TopLevelElement () : UITechnologyElement 
override function set TopLevelElement (value : UITechnologyElement)

Property Value

Type: Microsoft.VisualStudio.TestTools.UITest.Extension.UITechnologyElement
The top level window.

.NET Framework Security

See Also

Reference

UITechnologyElementProxy Class

Microsoft.VisualStudio.TestTools.UITesting Namespace