Muokkaa

Jaa


ListChangedEventArgs Constructors

Definition

Initializes a new instance of the ListChangedEventArgs class.

Overloads

ListChangedEventArgs(ListChangedType, PropertyDescriptor)

Initializes a new instance of the ListChangedEventArgs class given the type of change and the PropertyDescriptor affected.

ListChangedEventArgs(ListChangedType, Int32)

Initializes a new instance of the ListChangedEventArgs class given the type of change and the index of the affected item.

ListChangedEventArgs(ListChangedType, Int32, PropertyDescriptor)

Initializes a new instance of the ListChangedEventArgs class given the type of change, the index of the affected item, and a PropertyDescriptor describing the affected item.

ListChangedEventArgs(ListChangedType, Int32, Int32)

Initializes a new instance of the ListChangedEventArgs class given the type of change and the old and new index of the item that was moved.

ListChangedEventArgs(ListChangedType, PropertyDescriptor)

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

Initializes a new instance of the ListChangedEventArgs class given the type of change and the PropertyDescriptor affected.

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)

Parameters

listChangedType
ListChangedType

A ListChangedType value indicating the type of change.

propDesc
PropertyDescriptor

The PropertyDescriptor that was added, removed, or changed.

Remarks

This constructor can be used only if the schema of the object has changed.

The listChangedType parameter should be PropertyDescriptorAdded, PropertyDescriptorChanged, or PropertyDescriptorDeleted.

See also

Applies to

ListChangedEventArgs(ListChangedType, Int32)

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

Initializes a new instance of the ListChangedEventArgs class given the type of change and the index of the affected item.

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)

Parameters

listChangedType
ListChangedType

A ListChangedType value indicating the type of change.

newIndex
Int32

The index of the item that was added, changed, or removed.

Remarks

Use this constructor if only one item is affected by a change. In this case, the OldIndex property is set to -1.

See also

Applies to

ListChangedEventArgs(ListChangedType, Int32, PropertyDescriptor)

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

Initializes a new instance of the ListChangedEventArgs class given the type of change, the index of the affected item, and a PropertyDescriptor describing the affected item.

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)

Parameters

listChangedType
ListChangedType

A ListChangedType value indicating the type of change.

newIndex
Int32

The index of the item that was added or changed.

propDesc
PropertyDescriptor

The PropertyDescriptor describing the item.

Applies to

ListChangedEventArgs(ListChangedType, Int32, Int32)

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

Initializes a new instance of the ListChangedEventArgs class given the type of change and the old and new index of the item that was moved.

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)

Parameters

listChangedType
ListChangedType

A ListChangedType value indicating the type of change.

newIndex
Int32

The new index of the item that was moved.

oldIndex
Int32

The old index of the item that was moved.

See also

Applies to