ToolboxCategory.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.
Insère un outil dans l’index ToolboxCategory spécifié.
virtual void System.Collections.IList.Insert(int index, System::Object ^ value) = System::Collections::IList::Insert;
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 de base zéro auquel value doit être inséré.
- value
- Object
Outil ajouté à la collection.
Implémente
Exceptions
L’objet index n’est pas valide pour la ToolboxCategory collection.
value a la valeur null.
Il ToolboxCategory s’agit d’une valeur en lecture seule ou d’une taille fixe qui a été dépassée.
Remarques
ToolboxCategory implémente l’interface IList .
Si index elle est égale au nombre d’éléments dans le IList, elle value est ajoutée à la fin.
Dans les collections d’éléments contigus, tels que des listes, les éléments qui suivent le point d’insertion descendent pour prendre en charge le nouvel élément. Si la collection est indexée, les index des éléments déplacés sont également mis à jour.