TabControl.TabPageCollection.IList.Insert(Int32, Object) Metoda

Definicja

Wstawia kontrolkę TabPage do kolekcji.

Ten interfejs API obsługuje infrastrukturę produktu i nie jest przeznaczony do użycia bezpośrednio z poziomu kodu.

 virtual void System.Collections.IList.Insert(int index, System::Object ^ value) = System::Collections::IList::Insert;
 virtual void System.Collections.IList.Insert(int index, System::Object ^ tabPage) = System::Collections::IList::Insert;
void IList.Insert (int index, object value);
void IList.Insert (int index, object tabPage);
void IList.Insert (int index, object? tabPage);
abstract member System.Collections.IList.Insert : int * obj -> unit
override this.System.Collections.IList.Insert : int * obj -> unit
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
Sub Insert (index As Integer, tabPage As Object) Implements IList.Insert

Parametry

index
Int32

Indeks oparty na zerze, w którym TabPage należy wstawić element .

valuetabPage
Object

Element TabPage do wstawienia do .TabControl.TabPageCollection

Implementuje

Wyjątki

tabPagenie jest .TabPage

index wartość jest mniejsza niż 0 lub indeks jest większy niż lub równy Count.

Uwagi

Ten element jest jawną implementacją członków. Można go używać tylko wtedy, gdy TabControl.TabPageCollection wystąpienie jest rzutowe do interfejsu IList .

Dotyczy