语言

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,才能使用它。

适用于