Click or drag to resize
DigitalRuneGameObjectCollectionInsertItem Method
Inserts an element into the GameObjectCollection at the specified index.

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

Parameters

index
Type: SystemInt32
The zero-based index at which item should be inserted.
item
Type: DigitalRune.GameGameObject
The object to insert.
Exceptions
ExceptionCondition
ArgumentNullExceptionitem is .
ArgumentExceptionitem is already loaded, probably belongs to another service. Or the name of the game object is not unique.
ArgumentOutOfRangeExceptionindex is less than 0, or index is greater than Count.
See Also