Strings list of all menu items

Namespace:  QAliber.Engine.Controls.UIA
Assembly:  QAliber.Engine (in QAliber.Engine.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public string[] Items { get; }
Visual Basic (Declaration)
Public ReadOnly Property Items As String()
Visual C++
public:
virtual property array<String^>^ Items {
	array<String^>^ get () sealed;
}

Examples

CopyC#
System.Diagnostics.Process.Start("notepad");
  UIAWindow notepadWin = Desktop.UIA[@"Untitled - Notepad", @"Notepad", @"UIAWindow"] as UIAWindow;
  UIAMenu menu = notepadWin[@"Application", @"", @"MenuBar"] as UIAMenu;
  //Go through all the menue items
  if (!menu.CanSelectMultiple)
      foreach (string title in menu.Items)
          MessageBox.Show(title);

See Also