閱讀英文版本 編輯

分享方式:


CurrentChangingEventArgs Class

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Provides information for the CurrentChanging event.

C#
public class CurrentChangingEventArgs : EventArgs
Inheritance
CurrentChangingEventArgs

Remarks

A collection that supports ICollectionView raises this event when the CurrentItem is changing or when the content of the collection has been reset.

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.

Constructors

CurrentChangingEventArgs()

Initializes a new instance of the CurrentChangingEventArgs class.

CurrentChangingEventArgs(Boolean)

Initializes a new instance of the CurrentChangingEventArgs class with the specified isCancelable value.

Properties

Cancel

Gets or sets a value that indicates whether to cancel the event.

IsCancelable

Gets a value that indicates whether the event is cancelable.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

產品 版本
.NET Framework 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
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

See also