Click or drag to resize
DigitalRuneStateCollectionSetItem Method
Replaces the element at the specified index.

Namespace: DigitalRune.Game.States
Assembly: DigitalRune.Game (in DigitalRune.Game.dll) Version: 1.4.0.0 (1.4.0.14427)
Syntax
protected override void SetItem(
	int index,
	State item
)

Parameters

index
Type: SystemInt32
The zero-based index of the element to replace.
item
Type: DigitalRune.Game.StatesState
The new value for the element at the specified index. The value can be for reference types.
Exceptions
ExceptionCondition
ArgumentNullExceptionitem is .
ArgumentExceptionitem is already contained in the collection. Duplicate states are not allowed in the collection.
ArgumentOutOfRangeExceptionindex is less than zero. Or index is greater than Count.
See Also