ListChangedEventArgs Costruttori

Definizione

Inizializza una nuova istanza della classe ListChangedEventArgs.

Overload

ListChangedEventArgs(ListChangedType, PropertyDescriptor)

Inizializza una nuova istanza della classe ListChangedEventArgs dato il tipo di modifica e l'oggetto PropertyDescriptor interessato.

ListChangedEventArgs(ListChangedType, Int32)

Inizializza una nuova istanza della classe ListChangedEventArgs fornendo il tipo di modifica e l'indice dell'elemento interessato.

ListChangedEventArgs(ListChangedType, Int32, PropertyDescriptor)

Inizializza una nuova istanza della classe ListChangedEventArgs fornendo il tipo di modifica, l'indice dell'elemento interessato e un oggetto PropertyDescriptor che descrive l'elemento interessato.

ListChangedEventArgs(ListChangedType, Int32, Int32)

Inizializza una nuova istanza della classe ListChangedEventArgs dato il tipo della modifica, nonché il nuovo e il precedente indice dell'elemento spostato.

ListChangedEventArgs(ListChangedType, PropertyDescriptor)

Source:
ListChangedEventArgs.cs
Source:
ListChangedEventArgs.cs
Source:
ListChangedEventArgs.cs

Inizializza una nuova istanza della classe ListChangedEventArgs dato il tipo di modifica e l'oggetto PropertyDescriptor interessato.

public:
 ListChangedEventArgs(System::ComponentModel::ListChangedType listChangedType, System::ComponentModel::PropertyDescriptor ^ propDesc);
public ListChangedEventArgs (System.ComponentModel.ListChangedType listChangedType, System.ComponentModel.PropertyDescriptor propDesc);
public ListChangedEventArgs (System.ComponentModel.ListChangedType listChangedType, System.ComponentModel.PropertyDescriptor? propDesc);
new System.ComponentModel.ListChangedEventArgs : System.ComponentModel.ListChangedType * System.ComponentModel.PropertyDescriptor -> System.ComponentModel.ListChangedEventArgs
Public Sub New (listChangedType As ListChangedType, propDesc As PropertyDescriptor)

Parametri

listChangedType
ListChangedType

Valore ListChangedType che indica il tipo di modifica.

propDesc
PropertyDescriptor

Oggetto PropertyDescriptor aggiunto, rimosso o modificato.

Commenti

Questo costruttore può essere usato solo se lo schema dell'oggetto è stato modificato.

Il listChangedType parametro deve essere PropertyDescriptorAdded, PropertyDescriptorChangedo PropertyDescriptorDeleted.

Vedi anche

Si applica a

ListChangedEventArgs(ListChangedType, Int32)

Source:
ListChangedEventArgs.cs
Source:
ListChangedEventArgs.cs
Source:
ListChangedEventArgs.cs

Inizializza una nuova istanza della classe ListChangedEventArgs fornendo il tipo di modifica e l'indice dell'elemento interessato.

public:
 ListChangedEventArgs(System::ComponentModel::ListChangedType listChangedType, int newIndex);
public ListChangedEventArgs (System.ComponentModel.ListChangedType listChangedType, int newIndex);
new System.ComponentModel.ListChangedEventArgs : System.ComponentModel.ListChangedType * int -> System.ComponentModel.ListChangedEventArgs
Public Sub New (listChangedType As ListChangedType, newIndex As Integer)

Parametri

listChangedType
ListChangedType

Valore ListChangedType che indica il tipo di modifica.

newIndex
Int32

Indice dell'elemento che è stato aggiunto, modificato o rimosso.

Commenti

Usare questo costruttore se un solo elemento è interessato da una modifica. In questo caso, la OldIndex proprietà è impostata su -1.

Vedi anche

Si applica a

ListChangedEventArgs(ListChangedType, Int32, PropertyDescriptor)

Source:
ListChangedEventArgs.cs
Source:
ListChangedEventArgs.cs
Source:
ListChangedEventArgs.cs

Inizializza una nuova istanza della classe ListChangedEventArgs fornendo il tipo di modifica, l'indice dell'elemento interessato e un oggetto PropertyDescriptor che descrive l'elemento interessato.

public:
 ListChangedEventArgs(System::ComponentModel::ListChangedType listChangedType, int newIndex, System::ComponentModel::PropertyDescriptor ^ propDesc);
public ListChangedEventArgs (System.ComponentModel.ListChangedType listChangedType, int newIndex, System.ComponentModel.PropertyDescriptor propDesc);
public ListChangedEventArgs (System.ComponentModel.ListChangedType listChangedType, int newIndex, System.ComponentModel.PropertyDescriptor? propDesc);
new System.ComponentModel.ListChangedEventArgs : System.ComponentModel.ListChangedType * int * System.ComponentModel.PropertyDescriptor -> System.ComponentModel.ListChangedEventArgs
Public Sub New (listChangedType As ListChangedType, newIndex As Integer, propDesc As PropertyDescriptor)

Parametri

listChangedType
ListChangedType

Valore ListChangedType che indica il tipo di modifica.

newIndex
Int32

Indice dell'elemento che è stato aggiunto o modificato.

propDesc
PropertyDescriptor

Oggetto PropertyDescriptor che descrive l'elemento.

Si applica a

ListChangedEventArgs(ListChangedType, Int32, Int32)

Source:
ListChangedEventArgs.cs
Source:
ListChangedEventArgs.cs
Source:
ListChangedEventArgs.cs

Inizializza una nuova istanza della classe ListChangedEventArgs dato il tipo della modifica, nonché il nuovo e il precedente indice dell'elemento spostato.

public:
 ListChangedEventArgs(System::ComponentModel::ListChangedType listChangedType, int newIndex, int oldIndex);
public ListChangedEventArgs (System.ComponentModel.ListChangedType listChangedType, int newIndex, int oldIndex);
new System.ComponentModel.ListChangedEventArgs : System.ComponentModel.ListChangedType * int * int -> System.ComponentModel.ListChangedEventArgs
Public Sub New (listChangedType As ListChangedType, newIndex As Integer, oldIndex As Integer)

Parametri

listChangedType
ListChangedType

Valore ListChangedType che indica il tipo di modifica.

newIndex
Int32

Nuovo indice dell'elemento spostato.

oldIndex
Int32

Precedente indice dell'elemento spostato.

Vedi anche

Si applica a