DesignerVerbCollection.Insert(Int32, DesignerVerb) Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Insere o especificado DesignerVerb no índice especificado.
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)
Parâmetros
- index
- Int32
O índice na coleção onde inserir o verbo.
- value
- DesignerVerb
O DesignerVerb para inserir na coleção.
Exemplos
O exemplo de código seguinte demonstra como inserir a DesignerVerb num DesignerVerbCollection num índice 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)))