DesignerVerbCollection.Insert(Int32, DesignerVerb) メソッド

定義

指定したインデックス位置に指定した DesignerVerb を挿入します。Inserts the specified DesignerVerb at the specified index.

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

パラメーター

index
Int32

動詞を挿入する位置を示す、コレクション内のインデックス。The index in the collection at which to insert the verb.

value
DesignerVerb

コレクションに挿入する DesignerVerbThe DesignerVerb to insert in the collection.

次のコード例は、インデックス0の DesignerVerbCollectionDesignerVerb を挿入する方法を示しています。The following code example demonstrates how to insert a DesignerVerb into a DesignerVerbCollection at index 0.

// Inserts a DesignerVerb at index 0 of the collection.
collection->Insert( 0, gcnew DesignerVerb( "Example designer verb", gcnew EventHandler( this, &Class1::ExampleEvent ) ) );
// Inserts a DesignerVerb at index 0 of the collection.
collection.Insert( 0, new DesignerVerb("Example designer verb", new EventHandler(this.ExampleEvent)) );
' Inserts a DesignerVerb at index 0 of the collection.
collection.Insert(0, New DesignerVerb("Example designer verb", New EventHandler(AddressOf Me.ExampleEvent)))

適用対象