Item Property

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.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)

public T this[
	int index
] { get; set; }

Parameters

index
Type: System.Int32
The index of the object to get or set.

Property Value

Type: T
The object at the specified index.

Implements

IList<T>.Item[Int32]

ExceptionCondition
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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft