FreezableCollection<T>::Item Property (Int32)

 

Gets or sets the element at the specified index.

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

public:
property T default[
	int index
] {
	virtual T get(int index) sealed;
	virtual void set(int index, T value) sealed;
}

Parameters

index
Type: System::Int32

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

Property Value

Type: T

The element at the specified index.

Exception Condition
ArgumentOutOfRangeException

index is less than 0.

- or -

index is equal to or greater than Count.

ArgumentException

The specified element is null.

InvalidOperationException

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

.NET Framework
Available since 3.0
Return to top
Show: