NotifyCollectionChangedEventArgs Construtores
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.
Inicializa uma nova instância da NotifyCollectionChangedEventArgs classe.
Sobrecargas
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction)
Inicializa uma nova instância da NotifyCollectionChangedEventArgs classe que descreve uma Reset alteração.
public:
NotifyCollectionChangedEventArgs(System::Collections::Specialized::NotifyCollectionChangedAction action);
public NotifyCollectionChangedEventArgs(System.Collections.Specialized.NotifyCollectionChangedAction action);
new System.Collections.Specialized.NotifyCollectionChangedEventArgs : System.Collections.Specialized.NotifyCollectionChangedAction -> System.Collections.Specialized.NotifyCollectionChangedEventArgs
Public Sub New (action As NotifyCollectionChangedAction)
Parâmetros
A ação que causou o evento. Isso deve ser definido como Reset.
Aplica-se a
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList)
Inicializa uma nova instância da NotifyCollectionChangedEventArgs classe que descreve uma alteração multi-item.
public:
NotifyCollectionChangedEventArgs(System::Collections::Specialized::NotifyCollectionChangedAction action, System::Collections::IList ^ changedItems);
public NotifyCollectionChangedEventArgs(System.Collections.Specialized.NotifyCollectionChangedAction action, System.Collections.IList changedItems);
new System.Collections.Specialized.NotifyCollectionChangedEventArgs : System.Collections.Specialized.NotifyCollectionChangedAction * System.Collections.IList -> System.Collections.Specialized.NotifyCollectionChangedEventArgs
Public Sub New (action As NotifyCollectionChangedAction, changedItems As IList)
Parâmetros
- changedItems
- IList
Os itens afetados pela mudança.
Aplica-se a
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object)
Inicializa uma nova instância da NotifyCollectionChangedEventArgs classe que descreve uma alteração de um item.
public:
NotifyCollectionChangedEventArgs(System::Collections::Specialized::NotifyCollectionChangedAction action, System::Object ^ changedItem);
public NotifyCollectionChangedEventArgs(System.Collections.Specialized.NotifyCollectionChangedAction action, object changedItem);
new System.Collections.Specialized.NotifyCollectionChangedEventArgs : System.Collections.Specialized.NotifyCollectionChangedAction * obj -> System.Collections.Specialized.NotifyCollectionChangedEventArgs
Public Sub New (action As NotifyCollectionChangedAction, changedItem As Object)
Parâmetros
- changedItem
- Object
O item que é afetado pela alteração.
Exceções
Se action não for Reset, Adicionar ou Remover, ou se action for Resetar e changedItem não for nulo.
Aplica-se a
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, IList)
Inicializa uma nova instância da NotifyCollectionChangedEventArgs classe que descreve uma alteração multi-item Replace .
public:
NotifyCollectionChangedEventArgs(System::Collections::Specialized::NotifyCollectionChangedAction action, System::Collections::IList ^ newItems, System::Collections::IList ^ oldItems);
public NotifyCollectionChangedEventArgs(System.Collections.Specialized.NotifyCollectionChangedAction action, System.Collections.IList newItems, System.Collections.IList oldItems);
new System.Collections.Specialized.NotifyCollectionChangedEventArgs : System.Collections.Specialized.NotifyCollectionChangedAction * System.Collections.IList * System.Collections.IList -> System.Collections.Specialized.NotifyCollectionChangedEventArgs
Public Sub New (action As NotifyCollectionChangedAction, newItems As IList, oldItems As IList)
Parâmetros
A ação que causou o evento. Isto só pode ser definido para Replace.
- newItems
- IList
Os novos itens que estão a substituir os originais.
- oldItems
- IList
Os itens originais que são substituídos.
Exceções
Se action não for Substituir.
Se oldItems ou newItems for nulo.
Aplica-se a
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, Int32)
Inicializa uma nova instância da NotifyCollectionChangedEventArgs classe que descreve uma alteração multi-item ou uma Reset alteração.
public:
NotifyCollectionChangedEventArgs(System::Collections::Specialized::NotifyCollectionChangedAction action, System::Collections::IList ^ changedItems, int startingIndex);
public NotifyCollectionChangedEventArgs(System.Collections.Specialized.NotifyCollectionChangedAction action, System.Collections.IList changedItems, int startingIndex);
new System.Collections.Specialized.NotifyCollectionChangedEventArgs : System.Collections.Specialized.NotifyCollectionChangedAction * System.Collections.IList * int -> System.Collections.Specialized.NotifyCollectionChangedEventArgs
Public Sub New (action As NotifyCollectionChangedAction, changedItems As IList, startingIndex As Integer)
Parâmetros
- changedItems
- IList
Os itens afetados pela mudança.
- startingIndex
- Int32
O índice onde a alteração ocorreu.
Exceções
Se action não for Reset, Adicionar ou Remover, se action for Resetar e ou changedItems não for nulo ou startingIndex não for -1, ou se a ação for Adicionar ou Remover e startingIndex for inferior a -1.
Se action for Adicionar ou Remover e changedItems for nulo.
Aplica-se a
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Int32)
Inicializa uma nova instância da NotifyCollectionChangedEventArgs classe que descreve uma alteração de um item.
public:
NotifyCollectionChangedEventArgs(System::Collections::Specialized::NotifyCollectionChangedAction action, System::Object ^ changedItem, int index);
public NotifyCollectionChangedEventArgs(System.Collections.Specialized.NotifyCollectionChangedAction action, object changedItem, int index);
new System.Collections.Specialized.NotifyCollectionChangedEventArgs : System.Collections.Specialized.NotifyCollectionChangedAction * obj * int -> System.Collections.Specialized.NotifyCollectionChangedEventArgs
Public Sub New (action As NotifyCollectionChangedAction, changedItem As Object, index As Integer)
Parâmetros
- changedItem
- Object
O item que é afetado pela alteração.
- index
- Int32
O índice onde a alteração ocorreu.
Exceções
Se action não for Reset, Adicionar ou Remover, ou se action for Resetar e ou changedItem não for nulo ou index não for -1.
Aplica-se a
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Object)
Inicializa uma nova instância da NotifyCollectionChangedEventArgs classe que descreve uma alteração de um item Replace .
public:
NotifyCollectionChangedEventArgs(System::Collections::Specialized::NotifyCollectionChangedAction action, System::Object ^ newItem, System::Object ^ oldItem);
public NotifyCollectionChangedEventArgs(System.Collections.Specialized.NotifyCollectionChangedAction action, object newItem, object oldItem);
new System.Collections.Specialized.NotifyCollectionChangedEventArgs : System.Collections.Specialized.NotifyCollectionChangedAction * obj * obj -> System.Collections.Specialized.NotifyCollectionChangedEventArgs
Public Sub New (action As NotifyCollectionChangedAction, newItem As Object, oldItem As Object)
Parâmetros
A ação que causou o evento. Isto só pode ser definido para Replace.
- newItem
- Object
O novo artigo que está a substituir o original.
- oldItem
- Object
O item original que foi substituído.
Exceções
Se action não for Substituir.
Aplica-se a
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, IList, Int32)
Inicializa uma nova instância da NotifyCollectionChangedEventArgs classe que descreve uma alteração multi-item Replace .
public:
NotifyCollectionChangedEventArgs(System::Collections::Specialized::NotifyCollectionChangedAction action, System::Collections::IList ^ newItems, System::Collections::IList ^ oldItems, int startingIndex);
public NotifyCollectionChangedEventArgs(System.Collections.Specialized.NotifyCollectionChangedAction action, System.Collections.IList newItems, System.Collections.IList oldItems, int startingIndex);
new System.Collections.Specialized.NotifyCollectionChangedEventArgs : System.Collections.Specialized.NotifyCollectionChangedAction * System.Collections.IList * System.Collections.IList * int -> System.Collections.Specialized.NotifyCollectionChangedEventArgs
Public Sub New (action As NotifyCollectionChangedAction, newItems As IList, oldItems As IList, startingIndex As Integer)
Parâmetros
A ação que causou o evento. Isto só pode ser definido para Replace.
- newItems
- IList
Os novos itens que estão a substituir os originais.
- oldItems
- IList
Os itens originais que são substituídos.
- startingIndex
- Int32
O índice do primeiro item dos itens que estão a ser substituídos.
Exceções
Se action não for Substituir.
Se oldItems ou newItems for nulo.
Aplica-se a
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, Int32, Int32)
Inicializa uma nova instância da NotifyCollectionChangedEventArgs classe que descreve uma alteração multi-item Move .
public:
NotifyCollectionChangedEventArgs(System::Collections::Specialized::NotifyCollectionChangedAction action, System::Collections::IList ^ changedItems, int index, int oldIndex);
public NotifyCollectionChangedEventArgs(System.Collections.Specialized.NotifyCollectionChangedAction action, System.Collections.IList changedItems, int index, int oldIndex);
new System.Collections.Specialized.NotifyCollectionChangedEventArgs : System.Collections.Specialized.NotifyCollectionChangedAction * System.Collections.IList * int * int -> System.Collections.Specialized.NotifyCollectionChangedEventArgs
Public Sub New (action As NotifyCollectionChangedAction, changedItems As IList, index As Integer, oldIndex As Integer)
Parâmetros
A ação que causou o evento. Isto só pode ser definido para Move.
- changedItems
- IList
Os itens afetados pela mudança.
- index
- Int32
O novo índice para os itens alterados.
- oldIndex
- Int32
O índice antigo dos itens alterados.
Exceções
Se action não for Mover ou index for inferior a 0.
Aplica-se a
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Int32, Int32)
Inicializa uma nova instância da NotifyCollectionChangedEventArgs classe que descreve uma alteração de um item Move .
public:
NotifyCollectionChangedEventArgs(System::Collections::Specialized::NotifyCollectionChangedAction action, System::Object ^ changedItem, int index, int oldIndex);
public NotifyCollectionChangedEventArgs(System.Collections.Specialized.NotifyCollectionChangedAction action, object changedItem, int index, int oldIndex);
new System.Collections.Specialized.NotifyCollectionChangedEventArgs : System.Collections.Specialized.NotifyCollectionChangedAction * obj * int * int -> System.Collections.Specialized.NotifyCollectionChangedEventArgs
Public Sub New (action As NotifyCollectionChangedAction, changedItem As Object, index As Integer, oldIndex As Integer)
Parâmetros
A ação que causou o evento. Isto só pode ser definido para Move.
- changedItem
- Object
O item afetado pela alteração.
- index
- Int32
O novo índice para o item alterado.
- oldIndex
- Int32
O índice antigo do item alterado.
Exceções
Se action não for Mover ou index for inferior a 0.
Aplica-se a
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Object, Int32)
Inicializa uma nova instância da NotifyCollectionChangedEventArgs classe que descreve uma alteração de um item Replace .
public:
NotifyCollectionChangedEventArgs(System::Collections::Specialized::NotifyCollectionChangedAction action, System::Object ^ newItem, System::Object ^ oldItem, int index);
public NotifyCollectionChangedEventArgs(System.Collections.Specialized.NotifyCollectionChangedAction action, object newItem, object oldItem, int index);
new System.Collections.Specialized.NotifyCollectionChangedEventArgs : System.Collections.Specialized.NotifyCollectionChangedAction * obj * obj * int -> System.Collections.Specialized.NotifyCollectionChangedEventArgs
Public Sub New (action As NotifyCollectionChangedAction, newItem As Object, oldItem As Object, index As Integer)
Parâmetros
A ação que causou o evento. Isto pode ser definido para Replace.
- newItem
- Object
O novo artigo que está a substituir o original.
- oldItem
- Object
O item original que foi substituído.
- index
- Int32
O índice do item a ser substituído.
Exceções
Se action não for Substituir.