Retrieve the text string on the list item.

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 Text { get; }
Visual Basic (Declaration)
Public ReadOnly Property Text As String
Visual C++
public:
virtual property String^ Text {
	String^ get () sealed;
}

Examples

CopyC#
UIAListBox shortcutFolder = Desktop.UIA[@"Program Manager", @"Progman", @"UIAPane"][@"Desktop", @"SysListView32", @"1"] as UIAListBox;
  shortcutFolder.Select(0);
  UIAListItem sc = (UIAListItem)shortcutFolder.SelectedItems[0];
  MessageBox.Show("Selected shortcut is: " + sc.Text);

See Also