ListViewItem.ListViewSubItemCollection.IList.Insert(Int32, Object) Metoda

Definice

Vloží subitem do kolekce v zadaném indexu.

 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

Parametry

index
Int32

Umístění indexu založeného na nule, kam je položka vložena.

item
Object

Objekt, který představuje podsítě pro vložení do kolekce.

Implementuje

Výjimky

Parametr indexu je menší než 0 nebo větší než nebo rovno hodnotě vlastnosti Count vlastnosti ListViewItem.ListViewSubItemCollection.

Platí pro