Click or drag to resize
DigitalRuneInputCommandCollectionSetItem Method
Replaces the item at the specified index with the specified item.

Namespace: DigitalRune.Game.Input
Assembly: DigitalRune.Game.Input (in DigitalRune.Game.Input.dll) Version: 1.8.0.0 (1.8.0.14467)
Syntax
protected override void SetItem(
	int index,
	IInputCommand item
)

Parameters

index
Type: SystemInt32
The zero-based index of the item to be replaced.
item
Type: DigitalRune.Game.InputIInputCommand
The new item.
Exceptions
ExceptionCondition
ArgumentNullExceptionitem is .
InvalidOperationException Cannot add command to input service. The command is already added to an input service.
See Also