DependencyObjectCollection<T>.IList.Insert Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Adds the specified object to the collection at the specified index.
Assembly: System.Windows (in System.Windows.dll)
Parameters
- index
- Type: System.Int32
The index at which to add the object.
- value
- Type: System.Object
The object to add.
Implements
IList.Insert(Int32, Object)| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | index is less than zero or greater than the number of items in the collection. |
| ArgumentException | value is not a DependencyObject. |
| InvalidOperationException | The method is being called in a CollectionChanged event handler. |
This member is an explicit interface member implementation. It can be used only when the DependencyObjectCollection<T> instance is cast to an IList interface.