ListChangedType 枚举

定义

指定列表的更改方式。

public enum ListChangedType
继承
ListChangedType

字段

名称 说明
ItemAdded 1

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

ItemChanged 4

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

ItemDeleted 2

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

ItemMoved 3

列表中移动的项。 OldIndex 包含该项以前的索引,而 NewIndex 包含该项的新索引。

PropertyDescriptorAdded 5

已添加 PropertyDescriptor,这更改了架构。

PropertyDescriptorChanged 7

已更改 PropertyDescriptor,这更改了架构。

PropertyDescriptorDeleted 6

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

Reset 0

已更改了列表的许多内容。 任何侦听控件都应该根据该列表刷新其所有数据。

示例

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

注解

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

适用于

产品 版本
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

另请参阅