Interface IList
A Java list box with single or multiple selection.
public interface IList : IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportsNativeObject, IEnabledProvider, IVisibleProvider, ITestObject, ITestObjectDescriber
- Inherited Members
- Extension Methods
Properties
Items
The collection of items in the list.
ReadOnlyCollection<IListItem> Items { get; }
Property Value
SelectedItems
The collection of items that are selected in the list.
ReadOnlyCollection<IListItem> SelectedItems { get; }
Property Value
Methods
ActivateItem(IListItem)
Activates an item in the list.
void ActivateItem(IListItem item)
Parameters
itemIListItemThe item to activate.
ActivateItem(int)
Activates an item in the list.
void ActivateItem(int itemIndex)
Parameters
itemIndexintThe index of the item to activate.
ActivateItem(string)
Activates an item in the list.
void ActivateItem(string item)
Parameters
itemstringThe name of the item to activate .
Deselect(params IListItem[])
Deselects items in the list.
void Deselect(params IListItem[] items)
Parameters
itemsIListItem[]The items to deselect.
Deselect(params string[])
Deselects items from the list.
void Deselect(params string[] items)
Parameters
itemsstring[]The texts of the items to deselect.
Deselect(params uint[])
Deselects items in the list.
void Deselect(params uint[] itemIndices)
Parameters
itemIndicesuint[]0-based indices of the items to deselect.
DeselectRange(int, int)
Deselects list items between (and including) the two specified items.
void DeselectRange(int indexFrom, int indexTo)
Parameters
ExtendSelect(params IListItem[])
Selects additional items from the multi-selection list, by ListItems collection.
void ExtendSelect(params IListItem[] items)
Parameters
itemsIListItem[]The items to add to the selection.
ExtendSelect(params string[])
Selects additional items from the multi-selection list, by name.
void ExtendSelect(params string[] itemNames)
Parameters
itemNamesstring[]The item names to add to the selection.
ExtendSelect(params uint[])
Selects additional items from the multi-selection list, by indices.
void ExtendSelect(params uint[] itemIndices)
Parameters
itemIndicesuint[]The 0-based item indices to add to the selection.
GetItem(string)
Returns the item with the specified text.
IListItem GetItem(string text)
Parameters
textstringThe text of the item.
Returns
Select(params IListItem[])
Selects multiple items by ListItems collection.
void Select(params IListItem[] items)
Parameters
itemsIListItem[]The items to select.
Select(params string[])
Selects multiple items by string values.
void Select(params string[] items)
Parameters
itemsstring[]The texts of the items to select.
Select(params uint[])
Selects multiple items by indices.
void Select(params uint[] itemIndices)
Parameters
itemIndicesuint[]0-based indices of the items to select.
SelectRange(IListItem, IListItem)
Selects list items between (and including) the two specified ListItem items.
void SelectRange(IListItem itemFrom, IListItem itemTo)
Parameters
SelectRange(int, int)
Selects list items between (and including) the two specified items.
void SelectRange(int indexFrom, int indexTo)
Parameters
SelectRange(string, string)
Selects list items between (and including) the two specified items.
void SelectRange(string itemNameFirst, string itemNameLast)