[This is preliminary documentation and is subject to change.]
Inserts an object into the list at a particular
position.
Declaration Syntax
C# |
public void Insert( int index, T obj )
Remarks
If the IndexedList is ordered, then the Order property of the inserted object is set
to the insertion index. The Order property of all objects in the list
following the insertion index is adjusted accordingly.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Thrown if you insert an object
which is invalid (Persistent.IsInvalid returns
true). |