DataGridViewSelectedCellCollection.IList.Item[Int32] Propriété

Définition

Obtient l'élément au niveau de l'index spécifié.

property System::Object ^ System::Collections::IList::Item[int] { System::Object ^ get(int index); void set(int index, System::Object ^ value); };
object System.Collections.IList.Item[int index] { get; set; }
object? System.Collections.IList.Item[int index] { get; set; }
member this.System.Collections.IList.Item(int) : obj with get, set
 Property Item(index As Integer) As Object Implements IList.Item

Paramètres

index
Int32

Index de DataGridViewCell à obtenir de la collection DataGridViewSelectedCellCollection.

Valeur de propriété

DataGridViewCell au niveau de l'index spécifié.

Implémente

Exceptions

La propriété est définie.

index est inférieur à 0.

-ou-

index est égal ou supérieur au nombre de cellules dans la collection.

Remarques

Ce membre est une implémentation d'un membre d'interface explicite. Il peut uniquement être utilisé lorsque l'instance de DataGridViewSelectedCellCollection est castée en interface IList.

S’applique à

Voir aussi