We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

WinMenuItem.DisplayText Property

Gets the text of this menu item.

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

public virtual string DisplayText { get; }

Property Value

Type: System.String
The text of this menu item.

Show: