FreezableCollection.Item Property

Gets or sets the element at the specified index.

Namespace: System.Windows
Assembly: PresentationCore (in presentationcore.dll)
XML Namespace:

public T this [
	int index
] { get; set; }
/** @property */
public final T get_Item (int index)

/** @property */
public final void set_Item (int index, T value)

You cannot use this property in XAML.



The zero-based index of the element to get or set.

Property Value

The element at the specified index.

Exception typeCondition


index is less than zero.

- or -

index is equal to or greater than Count.


The specified element is a null reference (Nothing in Visual Basic).


Attempting to set an item in the collection when the collection is frozen (its IsFrozen property is true).

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0