DependencyObjectCollection<T>.Item Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets or sets the object at the specified index.
Assembly: System.Windows (in System.Windows.dll)
Parameters
- index
- Type: System.Int32
The index of the object to get or set.
Implements
IList<T>.Item[Int32]| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | index is less than zero or greater than the number of items in the collection. |
| ArgumentException | The specified value when setting this property is not a DependencyObject. |
| InvalidOperationException | The property is being set in a CollectionChanged event handler. |
Show: