Share via


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 を挿入する位置の、0 から始まるインデックス。

value
DesignerActionList

コレクションに挿入する DesignerActionList

例外

index が 0 未満か、現在のコレクションの要素数を超える値です。

注釈

パラメーターが プロパティのindexCount値と等しい場合、新しい要素がコレクションの末尾に追加されます。

内部的には、 クラスは を DesignerActionListCollection 使用 System.Collections.ArrayList してオブジェクトの DesignerActionList コレクションを格納します。 リストは連続する要素を保持するため、挿入ポイントに続く要素は、新しい要素に対応するために下に移動します。 この再配置により、挿入ポイントの後の要素のインデックスが変更されます。

適用対象

こちらもご覧ください