Partage via


ToolBar.ToolBarButtonCollection.IList.Insert(Int32, Object) Méthode

Définition

Insère un bouton de barre d'outils existant dans la collection de boutons de barre d'outils, à l'emplacement spécifié.

 virtual void System.Collections.IList.Insert(int index, System::Object ^ button) = System::Collections::IList::Insert;
void IList.Insert (int index, object button);
abstract member System.Collections.IList.Insert : int * obj -> unit
override this.System.Collections.IList.Insert : int * obj -> unit
Sub Insert (index As Integer, button As Object) Implements IList.Insert

Paramètres

index
Int32

Emplacement indexé dans la collection, auquel insérer le bouton de barre d'outils.

button
Object

ToolBarButton à insérer.

Implémente

Exceptions

button n’est pas un ToolBarButton.

Remarques

Ce membre est une implémentation d'un membre d'interface explicite. Il peut être utilisé uniquement lorsque le ToolBar.ToolBarButtonCollection est casté en une interface IList.

S’applique à