次の方法で共有


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 未満か、現在のコレクション内の要素の数より大きい値です。

注釈

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

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

適用対象

こちらもご覧ください