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

要插入 IListObject

實作

例外狀況

style 已指派給另一位擁有人。 必須先將其從目前位置移除或複製。

-或-

僅限 .NET 8 和更新版本: style 無法轉換成 類型 TableLayoutStyle

備註

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

適用於