DataGridViewSelectedCellCollection.IList.Insert(Int32, Object) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Implémente la méthode Insert(Int32, Object). Lève toujours NotSupportedException.
virtual void System.Collections.IList.Insert(int index, System::Object ^ value) = System::Collections::IList::Insert;
void IList.Insert (int index, object value);
void IList.Insert (int index, object? value);
abstract member System.Collections.IList.Insert : int * obj -> unit
override this.System.Collections.IList.Insert : int * obj -> unit
Sub Insert (index As Integer, value As Object) Implements IList.Insert
Paramètres
- index
- Int32
Index auquel value
doit être inséré.
- value
- Object
Objet à ajouter à DataGridViewSelectedCellCollection.
Implémente
Exceptions
Toujours levée.
Remarques
Vous ne pouvez pas modifier la DataGridViewSelectedCellCollection classe directement. Pour ajouter une cellule à , DataGridViewSelectedCellCollectionutilisez la DataGridViewCell.Selected propriété .
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.