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

要插入 TabControl.TabPageCollectionTabPage

實作

例外狀況

tabPage 不是 TabPage

index 小於 0,或索引大於或等於 Count

備註

這個成員是明確介面成員實作, 只有在 TabControl.TabPageCollection 執行個體轉換成 IList 介面時,才能使用這個成員。

適用於