CurrentChangingEventArgs 类

定义

提供有关 CurrentChanging 事件的信息。Provides information for the CurrentChanging event.

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

注解

一个集合, 该ICollectionView集合支持在更改或CurrentItem重置集合的内容时引发此事件。A collection that supports ICollectionView raises this event when the CurrentItem is changing or when the content of the collection has been reset.

默认情况下, 当原因是移动当前操作 (如和类似的MoveCurrentTo方法) 时, 该事件是可取消的, 当原因是对集合的不可逆更改操作时 uncancelable。By default, the event is cancelable when the cause is a move-current operation (such as the MoveCurrentTo and similar methods) and uncancelable when the cause is an irreversible change operation on the collection.

构造函数

CurrentChangingEventArgs()

初始化 CurrentChangingEventArgs 类的新实例。Initializes a new instance of the CurrentChangingEventArgs class.

CurrentChangingEventArgs(Boolean)

使用指定的 isCancelable 值初始化 CurrentChangingEventArgs 类的新实例。Initializes a new instance of the CurrentChangingEventArgs class with the specified isCancelable value.

属性

Cancel

获取或设置一个值,该值指示是否取消事件。Gets or sets a value that indicates whether to cancel the event.

IsCancelable

获取指示事件是否可以取消的值。Gets a value that indicates whether the event is cancelable.

方法

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)

适用于

另请参阅