Method SetItemIndex
- Namespace
- Alternet.Base.Collections
- Assembly
- Alternet.UI.Common.dll
SetItemIndex(T, int)
Sets the index of the specified item in the collection.
public virtual void SetItemIndex(T item, int newIndex)
Parameters
itemTThe item to search for.
newIndexintThe new index value of the item.
Remarks
If newIndex = -1, moves to the end of the collection.
Exceptions
- ArgumentException
The item is not in the collection.