通过


ListChangedType 枚举

定义

指定列表的更改方式。

public enum class ListChangedType
public enum ListChangedType
type ListChangedType = 
Public Enum ListChangedType
继承
ListChangedType

字段

名称 说明
Reset 0

大部分列表都发生了变化。 任何侦听控件都应从列表中刷新其所有数据。

ItemAdded 1

添加到列表中的项。 NewIndex 包含已添加的项的索引。

ItemDeleted 2

从列表中删除的项。 NewIndex 包含已删除的项的索引。

ItemMoved 3

列表中移动的项。 OldIndex 包含项的上一个索引,而 NewIndex 包含项的新索引。

ItemChanged 4

列表中的项已更改。 NewIndex 包含已更改的项的索引。

PropertyDescriptorAdded 5

添加了 A PropertyDescriptor ,更改了架构。

PropertyDescriptorDeleted 6

已删除 A PropertyDescriptor ,更改了架构。

PropertyDescriptorChanged 7

更改了 A PropertyDescriptor ,更改了架构。

示例

有关使用此类的示例,请参阅 处理 DataView 事件

注解

ListChangedType 类的属性 ListChangedEventArgs 用来指示对象更改的方式 IBindingList

适用于

另请参阅