Interface IList
A .NET WPF list object.
public interface IList : IUiObjectBase, IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportSendKeys, ISupportDragAndDrop, IEnabledProvider, IVisibleProvider, ISupportsNativeObject, ITestObject, ITestObjectDescriber
- Inherited Members
- Extension Methods
Properties
CanSelectMultiple
Indicates whether this list allows more than one child element to be selected at the same time.
bool CanSelectMultiple { get; }
Property Value
HelpText
The help text associated with this object.
string HelpText { get; }
Property Value
Items
Returns the list of items in the list object.
ReadOnlyCollection<string> Items { get; }
Property Value
Name
The name of this object.
string Name { get; }
Property Value
ParentText
The text associated with the parent object of this object.
string ParentText { get; }
Property Value
SelectedItems
Returns the list of items that are selected in the list object.
ReadOnlyCollection<string> SelectedItems { get; }
Property Value
Methods
Deselect(params int[])
Deselects a list of items.
void Deselect(params int[] indices)
Parameters
indicesint[]The 0-based indices of the items to deselect.
Deselect(params string[])
Deselects a list of items.
void Deselect(params string[] items)
Parameters
itemsstring[]The items to deselect.
ExtendSelect(params int[])
Selects additional items from the multi-selection list, by index.
void ExtendSelect(params int[] indices)
Parameters
indicesint[]The 0-based indices of the items to add to the selection.
Remarks
This method is applicable only to lists that allow multiple selection.
ExtendSelect(params string[])
Selects additional items from the multi-selection list, by name.
void ExtendSelect(params string[] items)
Parameters
itemsstring[]The names of the items to add to the selection.
Remarks
This method is applicable only to lists that allow multiple selection.
Select(params int[])
Selects a list of items.
void Select(params int[] indices)
Parameters
indicesint[]The 0-based indices of the items to select.
Select(params string[])
Selects a list of items.
void Select(params string[] items)
Parameters
itemsstring[]The items to select.
SelectRange(int, int)
Selects all list items between (and including) the two specified items.
void SelectRange(int indexFrom, int indexTo)
Parameters
indexFromintThe 0-based index of the first item in the range.
indexTointThe 0-based index of the last item of the range.
SelectRange(string, string)
Selects all list items between (and including) the two specified items.
void SelectRange(string itemFrom, string itemTo)