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

Namespace: DigitalRune.Physics.Constraints
Assembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.10.0.0 (1.10.0.14427)
Syntax
protected override void SetItem(
	int index,
	Constraint item
)

Parameters

index
Type: SystemInt32
The zero-based index of the element to replace.
item
Type: DigitalRune.Physics.ConstraintsConstraint
The new value for the element at the specified index.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionindex is less than zero or is greater than Count.
ArgumentNullExceptionitem is . The collection does not allow values. See AllowNull.
ArgumentExceptionitem is already contained in the collection. The collection does not allow duplicate items. See AllowDuplicates.
See Also