BindingSource.Insert(Int32, Object) BindingSource.Insert(Int32, Object) BindingSource.Insert(Int32, Object) BindingSource.Insert(Int32, Object) Method

Definición

Inserta un elemento en el índice especificado de la lista.Inserts an item into the list at the specified index.

public:
 virtual void Insert(int index, System::Object ^ value);
public virtual void Insert (int index, object value);
abstract member Insert : int * obj -> unit
override this.Insert : int * obj -> unit
Public Overridable Sub Insert (index As Integer, value As Object)

Parámetros

index
Int32 Int32 Int32 Int32

Índice basado en cero en el que debe insertarse value.The zero-based index at which value should be inserted.

value
Object Object Object Object

Object que se va a insertar.The Object to insert. El valor puede ser null.The value can be null.

Implementaciones

Excepciones

index es menor que cero o mayor que Count.index is less than zero or greater than Count.

La lista es de solo lectura o tiene un tamaño fijo.The list is read-only or has a fixed size.

Comentarios

Este método provoca la ListChanged eventos.This method raises the ListChanged event.

Se aplica a

Consulte también: