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

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 SetItem(
	int index,
	UIScreen item
)

Parameters

index
Type: SystemInt32
The zero-based index of the item to be replaced.
item
Type: DigitalRune.Game.UI.ControlsUIScreen
The new item.
Exceptions
ExceptionCondition
ArgumentNullExceptionitem is .
InvalidOperationException Cannot add item to UIScreenCollection. The item is already part of a different UIScreenCollection.
See Also