NotifyCollectionChangedEventArgs 类

定义

CollectionChanged 事件提供数据。Provides data for the CollectionChanged event.

public ref class NotifyCollectionChangedEventArgs : EventArgs
public class NotifyCollectionChangedEventArgs : EventArgs
type NotifyCollectionChangedEventArgs = class
    inherit EventArgs
Public Class NotifyCollectionChangedEventArgs
Inherits EventArgs
继承
NotifyCollectionChangedEventArgs

构造函数

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction)

初始化描述 NotifyCollectionChangedEventArgs 更改的 Reset 类的新实例。Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a Reset change.

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList)

初始化描述多项更改的 NotifyCollectionChangedEventArgs 类的新实例。Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a multi-item change.

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, IList)

初始化描述多项 NotifyCollectionChangedEventArgs 更改的 Replace 类的新实例。Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a multi-item Replace change.

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, IList, Int32)

初始化描述多项 NotifyCollectionChangedEventArgs 更改的 Replace 类的新实例。Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a multi-item Replace change.

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, Int32)

初始化 NotifyCollectionChangedEventArgs 类的新实例,该类描述多项更改或 Reset 更改。Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a multi-item change or a Reset change.

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, Int32, Int32)

初始化描述多项 NotifyCollectionChangedEventArgs 更改的 Move 类的新实例。Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a multi-item Move change.

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object)

初始化描述单项更改的 NotifyCollectionChangedEventArgs 类的新实例。Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a one-item change.

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Int32)

初始化描述单项更改的 NotifyCollectionChangedEventArgs 类的新实例。Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a one-item change.

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Int32, Int32)

初始化描述单项 NotifyCollectionChangedEventArgs 更改的 Move 类的新实例。Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a one-item Move change.

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Object)

初始化描述单项 NotifyCollectionChangedEventArgs 更改的 Replace 类的新实例。Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a one-item Replace change.

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Object, Int32)

初始化描述单项 NotifyCollectionChangedEventArgs 更改的 Replace 类的新实例。Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a one-item Replace change.

属性

Action

获取引起该事件的操作。Gets the action that caused the event.

NewItems

获取此更改中涉及的新项的列表。Gets the list of new items involved in the change.

NewStartingIndex

获取发生更改处的索引。Gets the index at which the change occurred.

OldItems

获取受 Replace、Remove 或 Move 操作影响的各项的列表。Gets the list of items affected by a Replace, Remove, or Move action.

OldStartingIndex

获取在其处发生 Move、删除或替换操作的索引。Gets the index at which a Move, Remove, or Replace action occurred.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅