DependencyObjectCollection<T>.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)
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | index is less than zero or greater than the number of items in the collection. |
| ArgumentException | item is not a DependencyObject. |
| InvalidOperationException | The method is being called in a CollectionChanged event handler. |
Show: