Retrieve list of UIControl (UIATreeItem) selected in the current treeView

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

Syntax

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

Examples

CopyC#
UIAWindow vsWin = Desktop.UIA["Visual Studio", true] as UIAWindow;
 UIATree solutionTree = vsWin[@"Solution Explorer",true][@"", @"VsUIHierarchyBaseWin", @"UIAPane"][@"Solution Explorer", @"SysTreeView32", @"UIATree"] as UIATree;
 solutionTree.Select("References");
 solutionTree.Select(2);
 for (int idx = 0 ; idx < solutionTree.SelectedItems.Length ; idx++)
     MessageBox.Show(solutionTree.SelectedItems[idx].Name);

See Also