Table of Contents

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

item T

The item to search for.

newIndex int

The 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.