Sage Modeling and Simulation Library

EventedList<(Of <(<'T>)>)>..::..Insert Method

Inserts an element into the List at the specified index.

Namespace:  Highpoint.Sage.Utility
Assembly:  Sage4 (in Sage4.dll)

Syntax


public void Insert(
	int index,
	T item
)

Parameters

index
Type: Int32
The zero-based index at which item should be inserted.
item
Type: T
The object to insert. The value can be null for reference types.

Exceptions


ExceptionCondition
ArgumentOutOfRangeExceptionindex is less than 0.-or-index is greater than Count.