Verify if list allow multiple items to be selected.

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

Syntax

C#
public bool CanSelectMultiple { get; }
Visual Basic (Declaration)
Public ReadOnly Property CanSelectMultiple As Boolean
Visual C++
public:
virtual property bool CanSelectMultiple {
	bool get () sealed;
}

Return Value

True if multiple items can be selected, false if not.

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;
MessageBox.Show("Allow multiple select: " + fontsStyle.CanSelectMultiple);

See Also