Click or drag to resize
DigitalRuneChildCollectionTParent, TChildInsertItem Method
Inserts an element into the collection at the specified index.

Namespace: DigitalRune.Collections
Assembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntax
protected override void InsertItem(
	int index,
	TChild item
)

Parameters

index
Type: SystemInt32
The zero-based index at which item should be inserted.
item
Type: TChild
The object to insert.
Exceptions
ExceptionCondition
ArgumentNullExceptionitem is .
InvalidOperationException Cannot insert node into collection - item is already in this collection or child of another object.
See Also