TableLayoutStyleCollection.IList.Insert(Int32, Object) 方法

定义

有关此方法的说明,请参阅该方法 Insert(Int32, Object)

 virtual void System.Collections.IList.Insert(int index, System::Object ^ style) = System::Collections::IList::Insert;
void IList.Insert(int index, object style);
void IList.Insert(int index, object? style);
abstract member System.Collections.IList.Insert : int * obj -> unit
override this.System.Collections.IList.Insert : int * obj -> unit
Sub Insert (index As Integer, style As Object) Implements IList.Insert

参数

index
Int32

应插入的从零开始 style 的索引。

style
Object

Object插入到 .IList

实现

例外

style 已分配给另一个所有者。 必须先将其从当前位置删除或克隆。

-或-

仅.NET 8 及更高版本:无法将 style转换为类型 TableLayoutStyle

注解

此成员是显式接口成员实现。 仅当实例强制转换为TableLayoutStyleCollection接口时IList,才能使用它。

适用于