DesignerActionListCollection.Insert(Int32, DesignerActionList) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將所供應 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 。 由於列表維持連續元素,插入點後的元素會向下移動以容納新元素。 此重新排列改變插入點後元素的索引。