ToolboxCategory.IList.Insert(Int32, Object) Méthode

Définition

Insère un outil dans ToolboxCategory à l'index 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 au niveau duquel value doit être inséré.

value
Object

Outil ajouté à la collection.

Implémente

Exceptions

L'index n'est pas valide pour la collection ToolboxCategory.

value a la valeur null.

ToolboxCategory est en lecture seule ou possède une taille fixe dépassée.

Remarques

ToolboxCategory implémente l'interface IList.

Si index est égal au nombre d'éléments dans IList, value est ajouté à la fin.

Dans des collections d’éléments contigus, telles que les listes, les éléments situés après le point d’insertion descendent afin de prendre en compte le nouvel élément. Si la collection est indexée, les index des éléments déplacés sont également mis à jour.

S’applique à