Editare

Partajați prin


ItemCollection.Item[Int32] Property

Definition

Gets or sets the item at the given zero-based index.

public:
 property System::Object ^ default[int] { System::Object ^ get(int index); void set(int index, System::Object ^ value); };
public object this[int index] { get; set; }
member this.Item(int) : obj with get, set
Default Public Property Item(index As Integer) As Object

Parameters

index
Int32

The zero-based index of the item.

Property Value

The object retrieved or the object that is being set to the specified index.

Implements

Exceptions

The collection is uninitialized, or the item to set already has a different logical parent, or the collection is in ItemsSource mode.

The index is out of range.

Applies to