DesignerVerbCollection.Insert(Int32, DesignerVerb) Yöntem

Tanım

Belirtilen dizinde belirtilen DesignerVerb öğesini ekler.

public:
 void Insert(int index, System::ComponentModel::Design::DesignerVerb ^ value);
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)

Parametreler

index
Int32

Fiilin eklendiği koleksiyondaki dizin.

value
DesignerVerb

DesignerVerb koleksiyona eklenecek.

Örnekler

Aşağıdaki kod örneği, dizin 0'da içine DesignerVerbCollection nasıl ekleyebileceğinizi DesignerVerb gösterir.

// 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)))

Şunlara uygulanır