Click or drag to resize
DigitalRuneShadowCollectionSetItem Method
Replaces the element at the specified index.

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
protected override void SetItem(
	int index,
	Shadow item
)

Parameters

index
Type: SystemInt32
The zero-based index of the element to replace.
item
Type: DigitalRune.GraphicsShadow
The new value for the element at the specified index.
Exceptions
ExceptionCondition
ArgumentNullExceptionitem is . The collection does not allow values.
ArgumentOutOfRangeExceptionindex is less than zero or is greater than Count.
ArgumentExceptionitem is a CompositeShadow. CompositeShadows cannot be added to a shadow collection.
ArgumentExceptionitem is already contained in the collection. The collection does not allow duplicate items.
See Also