Share via


WinMenuItem.IsTopLevelMenu Property

Gets or sets a value that indicates whether this menu item is the top-level menu.

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

Syntax

'Declaration
Public Overridable ReadOnly Property IsTopLevelMenu As Boolean
public virtual bool IsTopLevelMenu { get; }
public:
virtual property bool IsTopLevelMenu {
    bool get ();
}
abstract IsTopLevelMenu : bool with get 
override IsTopLevelMenu : bool with get
function get IsTopLevelMenu () : boolean

Property Value

Type: Boolean
true if this menu item is the top-level menu; otherwise, false.

.NET Framework Security

See Also

Reference

WinMenuItem Class

Microsoft.VisualStudio.TestTools.UITesting.WinControls Namespace