Table of Contents

Method SendSelect

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

SendSelect(string)

Simulates selection of an item with the given text.

bool SendSelect(string text)

Parameters

text string

The text of the item to select.

Returns

bool

true if the item text was successfully selected or false if the currently focused window is not one of the controls allowing item selection or if the item with the given text was not found in it.

Remarks

This method selects an item in the currently focused ComboBox, ListBox and similar controls. It does it by simulating keyboard events, so the behaviour should be the same as if the item was really selected by the user.