ListViewItem.ListViewSubItemCollection.IList.Insert(Int32, Object) Méthode

Définition

Insère un sous-élément dans la collection à l'index spécifié.

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

Paramètres

index
Int32

Emplacement de l’index de base zéro où l’élément est inséré.

item
Object

Objet qui représente le sous-élément à insérer dans la collection.

Implémente

Exceptions

Le paramètre d'index est inférieur à 0 ou supérieur ou égal à la valeur de la propriété Count de ListViewItem.ListViewSubItemCollection.

S’applique à