ListChangedType 枚举

定义

指定列表的更改方式。Specifies how the list changed.

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

字段

ItemAdded 1

添加到列表的项。An item added to the list. NewIndex 包含被添加项的索引。NewIndex contains the index of the item that was added.

ItemChanged 4

列表中更改的项。An item changed in the list. NewIndex 包含被更改项的索引。NewIndex contains the index of the item that was changed.

ItemDeleted 2

从列表中删除的项。An item deleted from the list. NewIndex 包含被删除项的索引。NewIndex contains the index of the item that was deleted.

ItemMoved 3

列表中移动的项。An item moved within the list. OldIndex 包含该项以前的索引,而 NewIndex 包含该项的新索引。OldIndex contains the previous index for the item, whereas NewIndex contains the new index for the item.

PropertyDescriptorAdded 5

已添加 PropertyDescriptor,这更改了架构。A PropertyDescriptor was added, which changed the schema.

PropertyDescriptorChanged 7

已更改 PropertyDescriptor,这更改了架构。A PropertyDescriptor was changed, which changed the schema.

PropertyDescriptorDeleted 6

已删除 PropertyDescriptor,这更改了架构。A PropertyDescriptor was deleted, which changed the schema.

Reset 0

已更改了列表的许多内容。Much of the list has changed. 任何侦听控件都应该根据该列表刷新其所有数据。Any listening controls should refresh all their data from the list.

示例

有关使用此类的示例, 请参阅处理 DataView 事件For an example of using this class, see Handling DataView Events.

注解

ListChangedType ListChangedEventArgs类的属性用IBindingList来指示对象更改的方式。Used by the ListChangedType property of the ListChangedEventArgs class to indicate the way an IBindingList object changes.

适用于

另请参阅