FreezableCollection<'T>.Item Property (Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the element at the specified index.

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

abstract Item : 
        index:int -> 'T with get, set
override Item : 
        index:int -> 'T with get, set

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: