Return the string names of each item in the list

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;
 UIDocument doc = notepadWin[@"", @"Edit", @"15"] as UIDocument;
 doc.Write("{LeftAlt}of");

 UIAWindow fontWin = notepadWin[@"Font", @"#32770", @"UIAWindow"] as UIAWindow;

 UIAListBox fontsStyle = fontWin[@"Font style:", @"ComboBox", @"1137"][@"Font style:", @"ComboLBox", @"ListBox"] as UIAListBox;
 foreach (string style in fontsStyle.Items)
     MessageBox.Show(style);

See Also