Remove the item from list of selected 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 void RemoveFromSelection()
Visual Basic (Declaration)
Public Sub RemoveFromSelection
Visual C++
public:
virtual void RemoveFromSelection() 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(sc.Name + " was selected, save reference, and select the next item.");
shortcutFolder.Select(1);

MessageBox.Show("Click OK to add " + sc.Name + " to selection: " );
sc.AddToSelection();
MessageBox.Show("Click OK to remove from selection: " + sc.Name);
sc.RemoveFromSelection();
MessageBox.Show("Click OK to select only " + sc.Name);
sc.Select();

See Also