語言

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 介面時使用。

適用於