語言

TabControl.TabPageCollection.IList.Insert(Int32, Object) 方法

定義

將 TabPage 一個控制項插入到集合中。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

 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

參數

index
Int32

應插入的 TabPage 以零為基礎的索引。

valuetabPage
Object

將 TabPage 插入 TabControl.TabPageCollection.

實作

例外狀況

tabPage 不是 TabPage。

index 小於 0,或指標大於或等 Count於 。

備註

此成員為明確介面成員實作。 它只能在實 TabControl.TabPageCollection 例投射到 IList 介面時使用。

適用於