Click or drag to resize
DigitalRuneNotifyingCollection<T>.SetItem Method
Replaces the element at the specified index.

Namespace: DigitalRune.Collections
Assembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntax
protected override void SetItem(
	int index,
	T item
)

Parameters

index
Type: System.Int32
The zero-based index of the element to replace.
item
Type: T
The new value for the element at the specified index.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionindex is less than zero or is greater than Count.
ArgumentNullExceptionitem is null. The collection does not allow null values. See AllowNull.
ArgumentExceptionitem is already contained in the collection. The collection does not allow duplicate items. See AllowDuplicates.
See Also