Click or drag to resize
DigitalRuneUIScreenCollectionInsertItem Method
Inserts an element into the UIScreenCollection at the specified index.

Namespace: DigitalRune.Game.UI
Assembly: DigitalRune.Game.UI (in DigitalRune.Game.UI.dll) Version: 1.8.0.0 (1.8.0.14553)
Syntax
protected override void InsertItem(
	int index,
	UIScreen item
)

Parameters

index
Type: SystemInt32
The zero-based index at which item should be inserted.
item
Type: DigitalRune.Game.UI.ControlsUIScreen
The object to insert.
Exceptions
ExceptionCondition
ArgumentNullExceptionitem is .
ArgumentOutOfRangeExceptionindex is less than 0, or index is greater than Count.
InvalidOperationException Cannot add item to UIScreenCollection. The item is already part of a different UIScreenCollection.
See Also