DataGridViewSelectedCellCollection.Item[Int32] Propriété

Définition

Obtient la cellule à l'index spécifié.

public:
 property System::Windows::Forms::DataGridViewCell ^ default[int] { System::Windows::Forms::DataGridViewCell ^ get(int index); };
public System.Windows.Forms.DataGridViewCell this[int index] { get; }
member this.Item(int) : System.Windows.Forms.DataGridViewCell
Default Public ReadOnly Property Item(index As Integer) As DataGridViewCell

Paramètres

index
Int32

Index de DataGridViewCell à obtenir de la collection DataGridViewSelectedCellCollection.

Valeur de propriété

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

Exceptions

index est inférieur à 0.

-ou-

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

S’applique à

Voir aussi