Interface IListBase<T>
Base interface for standard Windows list objects.
public interface IListBase<T>
Type Parameters
T
Properties
Items
The collection of items in the list as a read-only collection object.
ReadOnlyCollection<T> Items { get; }
Property Value
SelectedItems
The collection of all selected items in the list as a read-only collection object.
ReadOnlyCollection<T> SelectedItems { get; }
Property Value
Methods
ActivateItem(int, MouseButton)
Activates (double-clicks) the specified item in the list by item index.
void ActivateItem(int itemIndex, MouseButton button = MouseButton.Left)
Parameters
itemIndexintThe item index to activate.
buttonMouseButtonOptional. The mouse button used to select the list item. Possible values: MouseButton Default value: MouseButton.Left
ActivateItem(string, MouseButton)
Activates (double-clicks) the specified item in the list by item text.
void ActivateItem(string item, MouseButton button = MouseButton.Left)
Parameters
itemstringThe specified item to activate from the list.
buttonMouseButtonOptional. The mouse button used to select the list item. Possible values: MouseButton Default value: MouseButton.Left
ActivateItem(T, MouseButton)
Activates (double-clicks) the specified generic item in the list.
void ActivateItem(T item, MouseButton button = MouseButton.Left)
Parameters
itemTThe specified item to activate from the list.
buttonMouseButtonOptional. The mouse button used to select the list item. Possible values: MouseButton Default value: MouseButton.Left
Deselect(params int[])
Deselects a list of items by item indices.
void Deselect(params int[] itemIndices)
Parameters
itemIndicesint[]The item indices to deselect from the list.
Deselect(params string[])
Deselects a list of items by item text.
void Deselect(params string[] items)
Parameters
itemsstring[]The item names to deselect from the list.
Deselect(params T[])
Deselects a list of items according to a generic list.
void Deselect(params T[] items)
Parameters
itemsT[]The items to deselect from the list.
ExtendSelect(params int[])
Selects additional items from the multi-selection list.
void ExtendSelect(params int[] itemIndices)
Parameters
itemIndicesint[]The 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.
void ExtendSelect(params string[] itemNames)
Parameters
itemNamesstring[]The of names of the items to add to the selection.
Remarks
This method is applicable only to lists that allow multiple selection.
ExtendSelect(params T[])
Selects additional items from the multi-selection list.
void ExtendSelect(params T[] items)
Parameters
itemsT[]The items to add to the selection.
Remarks
This method is applicable only to lists that allow multiple selection.
GetItem(string)
Returns an item with the given text.
T GetItem(string text)
Parameters
textstringThe text of the specified item.
Returns
- T
Select(params int[])
Selects a list of items by item indices.
void Select(params int[] itemIndices)
Parameters
itemIndicesint[]The item indices to select from the list.
Select(params string[])
Selects a list of items.
void Select(params string[] items)
Parameters
itemsstring[]The item names to select from the list.
Select(params T[])
Selects a list of items according to a generic list.
void Select(params T[] items)
Parameters
itemsT[]The items to select from the list.
SelectRange(int)
Selects all list items between the currently selected item and the item whose index is specified.
void SelectRange(int indexTo)
Parameters
indexTointThe 0-based index of the last item to select.
Remarks
This method is applicable only to lists that allow multiple selection.
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 in the range.
Remarks
This method is applicable only to lists that allow multiple selection.
SelectRange(string)
Selects all list items between the currently selected item and the item whose text is specified.
void SelectRange(string itemTo)
Parameters
itemTostringThe text of the last item to select.
Remarks
This method is applicable only to lists that allow multiple selection.
SelectRange(string, string)
Selects all list items between (and including) the two specified items.
void SelectRange(string itemNameFrom, string itemNameTo)
Parameters
itemNameFromstringThe text of the first item in the range.
itemNameTostringThe text of the last item in the range.
Remarks
This method is applicable only to lists that allow multiple selection.
SelectRange(T)
Selects all list items between the currently selected item and the item passed as the argument.
void SelectRange(T itemTo)
Parameters
itemToTThe last item to select.
Remarks
This method is applicable only to lists that allow multiple selection.
SelectRange(T, T)
Selects all list items between (and including) the two specified items.
void SelectRange(T itemFrom, T itemTo)
Parameters
itemFromTThe first item in the range.
itemToTThe last item in the range.
Remarks
This method is applicable only to lists that allow multiple selection.