ObservableCollection<T>.SetItem(Int32, T) Método
Definição
Substitui o elemento no índice especificado.Replaces the element at the specified index.
protected:
override void SetItem(int index, T item);
protected override void SetItem (int index, T item);
override this.SetItem : int * 'T -> unit
Protected Overrides Sub SetItem (index As Integer, item As T)
Parâmetros
- index
- Int32
O índice de base zero do elemento a ser substituído.The zero-based index of the element to replace.
- item
- T
O novo valor para o elemento no índice especificado.The new value for the element at the specified index.
Comentários
A classe base chama esse método quando um item é definido na coleção.The base class calls this method when an item is set in the collection. Essa implementação gera o CollectionChanged evento.This implementation raises the CollectionChanged event.
Para obter mais informações, consulte o SetItem método da Collection<T> classe base.For more information, see the SetItem method of the Collection<T> base class.