Get the list of selected fonts

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;
}

Return Value

List of UIControls, or null if did not find selected items

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 fontsList = fontWin[@"Font:", @"ComboBox", @"1136"][@"Font:", @"ComboLBox", @"ListBox"] as UIAListBox;
MessageBox.Show("Selected font: " + fontsList.SelectedItems[0].Name);

See Also