共用方式為


DesignerActionListCollection.Insert(Int32, DesignerActionList) 方法

定義

將所供應 DesignerActionList 的物品插入指定位置。

public:
 void Insert(int index, System::ComponentModel::Design::DesignerActionList ^ value);
public void Insert(int index, System.ComponentModel.Design.DesignerActionList value);
public void Insert(int index, System.ComponentModel.Design.DesignerActionList? value);
member this.Insert : int * System.ComponentModel.Design.DesignerActionList -> unit
Public Sub Insert (index As Integer, value As DesignerActionList)

參數

index
Int32

應插入的以零為基礎的索引 value

value
DesignerActionList

DesignerActionList 插入收藏。

例外狀況

index 小於 0 或大於當前集合中元素的數量。

備註

index 參數等於屬性 Count 的值,則將新元素加入集合的末尾。

在內部,類別 DesignerActionListCollection 使用 a System.Collections.ArrayList 來包含其物件集合 DesignerActionList 。 由於列表維持連續元素,插入點後的元素會向下移動以容納新元素。 此重新排列改變插入點後元素的索引。

適用於

另請參閱