Click or drag to resize
DigitalRuneInputCommandCollectionInsertItem Method
Inserts an element into the InputCommandCollection at the specified index.

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 InsertItem(
	int index,
	IInputCommand item
)

Parameters

index
Type: SystemInt32
The zero-based index at which item should be inserted.
item
Type: DigitalRune.Game.InputIInputCommand
The object to insert.
Exceptions
ExceptionCondition
ArgumentNullExceptionitem is .
ArgumentOutOfRangeExceptionindex is less than 0, or index is greater than Count.
InvalidOperationException Cannot add command to input service. The command is already added to an input service.
See Also